#[repr(transparent)]pub struct SparseTensorIndex(pub u8);
Tuple Fields§
§0: u8
Implementations§
Source§impl SparseTensorIndex
impl SparseTensorIndex
pub const NONE: Self = _
pub const SparseTensorIndexCOO: Self = _
pub const SparseMatrixIndexCSX: Self = _
pub const SparseTensorIndexCSF: Self = _
pub const ENUM_MIN: u8 = 0u8
pub const ENUM_MAX: u8 = 3u8
pub const ENUM_VALUES: &'static [Self] = _
Sourcepub fn variant_name(self) -> Option<&'static str>
pub fn variant_name(self) -> Option<&'static str>
Returns the variant’s name or “” if unknown.
Trait Implementations§
Source§impl Clone for SparseTensorIndex
impl Clone for SparseTensorIndex
Source§fn clone(&self) -> SparseTensorIndex
fn clone(&self) -> SparseTensorIndex
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SparseTensorIndex
impl Debug for SparseTensorIndex
Source§impl Default for SparseTensorIndex
impl Default for SparseTensorIndex
Source§fn default() -> SparseTensorIndex
fn default() -> SparseTensorIndex
Returns the “default value” for a type. Read more
Source§impl EndianScalar for SparseTensorIndex
impl EndianScalar for SparseTensorIndex
Source§impl<'a> Follow<'a> for SparseTensorIndex
impl<'a> Follow<'a> for SparseTensorIndex
Source§impl Hash for SparseTensorIndex
impl Hash for SparseTensorIndex
Source§impl Ord for SparseTensorIndex
impl Ord for SparseTensorIndex
Source§fn cmp(&self, other: &SparseTensorIndex) -> Ordering
fn cmp(&self, other: &SparseTensorIndex) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SparseTensorIndex
impl PartialEq for SparseTensorIndex
Source§impl PartialOrd for SparseTensorIndex
impl PartialOrd for SparseTensorIndex
Source§impl Push for SparseTensorIndex
impl Push for SparseTensorIndex
Source§impl<'a> Verifiable for SparseTensorIndex
impl<'a> Verifiable for SparseTensorIndex
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos
in the verifier’s buffer.
Should not need to be called directly.impl Copy for SparseTensorIndex
impl Eq for SparseTensorIndex
impl SimpleToVerifyInSlice for SparseTensorIndex
impl StructuralPartialEq for SparseTensorIndex
Auto Trait Implementations§
impl Freeze for SparseTensorIndex
impl RefUnwindSafe for SparseTensorIndex
impl Send for SparseTensorIndex
impl Sync for SparseTensorIndex
impl Unpin for SparseTensorIndex
impl UnwindSafe for SparseTensorIndex
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