pub struct SparseTensorIndexCooBuilder<State>(/* private fields */);Expand description
Builder for serializing an instance of the SparseTensorIndexCoo type.
Can be created using the SparseTensorIndexCoo::builder method.
Implementations§
Source§impl SparseTensorIndexCooBuilder<()>
impl SparseTensorIndexCooBuilder<()>
Sourcepub fn indices_type<T0>(self, value: T0) -> SparseTensorIndexCooBuilder<(T0,)>
pub fn indices_type<T0>(self, value: T0) -> SparseTensorIndexCooBuilder<(T0,)>
Setter for the indicesType field.
Source§impl<T0> SparseTensorIndexCooBuilder<(T0,)>
impl<T0> SparseTensorIndexCooBuilder<(T0,)>
Sourcepub fn indices_strides<T1>(
self,
value: T1,
) -> SparseTensorIndexCooBuilder<(T0, T1)>
pub fn indices_strides<T1>( self, value: T1, ) -> SparseTensorIndexCooBuilder<(T0, T1)>
Setter for the indicesStrides field.
Sourcepub fn indices_strides_as_null(self) -> SparseTensorIndexCooBuilder<(T0, ())>
pub fn indices_strides_as_null(self) -> SparseTensorIndexCooBuilder<(T0, ())>
Sets the indicesStrides field to null.
Source§impl<T0, T1> SparseTensorIndexCooBuilder<(T0, T1)>
impl<T0, T1> SparseTensorIndexCooBuilder<(T0, T1)>
Sourcepub fn indices_buffer<T2>(
self,
value: T2,
) -> SparseTensorIndexCooBuilder<(T0, T1, T2)>
pub fn indices_buffer<T2>( self, value: T2, ) -> SparseTensorIndexCooBuilder<(T0, T1, T2)>
Setter for the indicesBuffer field.
Source§impl<T0, T1, T2> SparseTensorIndexCooBuilder<(T0, T1, T2)>
impl<T0, T1, T2> SparseTensorIndexCooBuilder<(T0, T1, T2)>
Sourcepub fn is_canonical<T3>(
self,
value: T3,
) -> SparseTensorIndexCooBuilder<(T0, T1, T2, T3)>
pub fn is_canonical<T3>( self, value: T3, ) -> SparseTensorIndexCooBuilder<(T0, T1, T2, T3)>
Setter for the isCanonical field.
Sourcepub fn is_canonical_as_default(
self,
) -> SparseTensorIndexCooBuilder<(T0, T1, T2, DefaultValue)>
pub fn is_canonical_as_default( self, ) -> SparseTensorIndexCooBuilder<(T0, T1, T2, DefaultValue)>
Sets the isCanonical field to the default value.
Source§impl<T0, T1, T2, T3> SparseTensorIndexCooBuilder<(T0, T1, T2, T3)>
impl<T0, T1, T2, T3> SparseTensorIndexCooBuilder<(T0, T1, T2, T3)>
Sourcepub fn finish(self, builder: &mut Builder) -> Offset<SparseTensorIndexCoo>where
Self: WriteAsOffset<SparseTensorIndexCoo>,
pub fn finish(self, builder: &mut Builder) -> Offset<SparseTensorIndexCoo>where
Self: WriteAsOffset<SparseTensorIndexCoo>,
Finish writing the builder to get an Offset to a serialized SparseTensorIndexCoo.
Trait Implementations§
Source§impl<State: Debug> Debug for SparseTensorIndexCooBuilder<State>
impl<State: Debug> Debug for SparseTensorIndexCooBuilder<State>
impl<T0: WriteAs<Offset<Int>>, T1: WriteAsOptional<Offset<[i64]>>, T2: WriteAs<Buffer>, T3: WriteAsDefault<bool, bool>> WriteAs<Offset<SparseTensorIndexCoo>> for SparseTensorIndexCooBuilder<(T0, T1, T2, T3)>
impl<T0: WriteAs<Offset<Int>>, T1: WriteAsOptional<Offset<[i64]>>, T2: WriteAs<Buffer>, T3: WriteAsDefault<bool, bool>> WriteAsOffset<SparseTensorIndexCoo> for SparseTensorIndexCooBuilder<(T0, T1, T2, T3)>
impl<T0: WriteAs<Offset<Int>>, T1: WriteAsOptional<Offset<[i64]>>, T2: WriteAs<Buffer>, T3: WriteAsDefault<bool, bool>> WriteAsOptional<Offset<SparseTensorIndexCoo>> for SparseTensorIndexCooBuilder<(T0, T1, T2, T3)>
Auto Trait Implementations§
impl<State> Freeze for SparseTensorIndexCooBuilder<State>where
State: Freeze,
impl<State> RefUnwindSafe for SparseTensorIndexCooBuilder<State>where
State: RefUnwindSafe,
impl<State> Send for SparseTensorIndexCooBuilder<State>where
State: Send,
impl<State> Sync for SparseTensorIndexCooBuilder<State>where
State: Sync,
impl<State> Unpin for SparseTensorIndexCooBuilder<State>where
State: Unpin,
impl<State> UnwindSafe for SparseTensorIndexCooBuilder<State>where
State: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more