pub struct SparseTensorIndexBuilder<T>(/* private fields */);Expand description
Builder for serializing an instance of the SparseTensorIndex type.
Can be created using the SparseTensorIndex::builder method.
Implementations§
Source§impl SparseTensorIndexBuilder<Uninitialized>
impl SparseTensorIndexBuilder<Uninitialized>
Sourcepub fn sparse_tensor_index_coo<T>(
self,
value: T,
) -> SparseTensorIndexBuilder<Initialized<1, T>>where
T: WriteAsOffset<SparseTensorIndexCoo>,
pub fn sparse_tensor_index_coo<T>(
self,
value: T,
) -> SparseTensorIndexBuilder<Initialized<1, T>>where
T: WriteAsOffset<SparseTensorIndexCoo>,
Creates an instance of the SparseTensorIndexCOO variant.
Sourcepub fn sparse_matrix_index_csx<T>(
self,
value: T,
) -> SparseTensorIndexBuilder<Initialized<2, T>>where
T: WriteAsOffset<SparseMatrixIndexCsx>,
pub fn sparse_matrix_index_csx<T>(
self,
value: T,
) -> SparseTensorIndexBuilder<Initialized<2, T>>where
T: WriteAsOffset<SparseMatrixIndexCsx>,
Creates an instance of the SparseMatrixIndexCSX variant.
Sourcepub fn sparse_tensor_index_csf<T>(
self,
value: T,
) -> SparseTensorIndexBuilder<Initialized<3, T>>where
T: WriteAsOffset<SparseTensorIndexCsf>,
pub fn sparse_tensor_index_csf<T>(
self,
value: T,
) -> SparseTensorIndexBuilder<Initialized<3, T>>where
T: WriteAsOffset<SparseTensorIndexCsf>,
Creates an instance of the SparseTensorIndexCSF variant.
Source§impl<const N: u8, T> SparseTensorIndexBuilder<Initialized<N, T>>
impl<const N: u8, T> SparseTensorIndexBuilder<Initialized<N, T>>
Sourcepub fn finish(self, builder: &mut Builder) -> UnionOffset<SparseTensorIndex>where
Self: WriteAsUnion<SparseTensorIndex>,
pub fn finish(self, builder: &mut Builder) -> UnionOffset<SparseTensorIndex>where
Self: WriteAsUnion<SparseTensorIndex>,
Finish writing the builder to get an UnionOffset to a serialized SparseTensorIndex.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for SparseTensorIndexBuilder<T>where
T: Freeze,
impl<T> RefUnwindSafe for SparseTensorIndexBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for SparseTensorIndexBuilder<T>where
T: Send,
impl<T> Sync for SparseTensorIndexBuilder<T>where
T: Sync,
impl<T> Unpin for SparseTensorIndexBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for SparseTensorIndexBuilder<T>where
T: 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