#[repr(transparent)]pub struct ConstantDataType(pub u16);Tuple Fields§
§0: u16Implementations§
Source§impl ConstantDataType
 
impl ConstantDataType
pub const Int32: Self
pub const Float32: Self
pub const Int8: Self
pub const UInt8: Self
pub const ENUM_MIN: u16 = 0u16
pub const ENUM_MAX: u16 = 3u16
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 ConstantDataType
 
impl Clone for ConstantDataType
Source§fn clone(&self) -> ConstantDataType
 
fn clone(&self) -> ConstantDataType
Returns a duplicate 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 ConstantDataType
 
impl Debug for ConstantDataType
Source§impl Default for ConstantDataType
 
impl Default for ConstantDataType
Source§fn default() -> ConstantDataType
 
fn default() -> ConstantDataType
Returns the “default value” for a type. Read more
Source§impl EndianScalar for ConstantDataType
 
impl EndianScalar for ConstantDataType
Source§impl<'a> Follow<'a> for ConstantDataType
 
impl<'a> Follow<'a> for ConstantDataType
Source§impl Hash for ConstantDataType
 
impl Hash for ConstantDataType
Source§impl Ord for ConstantDataType
 
impl Ord for ConstantDataType
Source§fn cmp(&self, other: &ConstantDataType) -> Ordering
 
fn cmp(&self, other: &ConstantDataType) -> 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 ConstantDataType
 
impl PartialEq for ConstantDataType
Source§impl PartialOrd for ConstantDataType
 
impl PartialOrd for ConstantDataType
Source§impl Push for ConstantDataType
 
impl Push for ConstantDataType
Source§impl<'a> Verifiable for ConstantDataType
 
impl<'a> Verifiable for ConstantDataType
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 ConstantDataType
impl Eq for ConstantDataType
impl SimpleToVerifyInSlice for ConstantDataType
impl StructuralPartialEq for ConstantDataType
Auto Trait Implementations§
impl Freeze for ConstantDataType
impl RefUnwindSafe for ConstantDataType
impl Send for ConstantDataType
impl Sync for ConstantDataType
impl Unpin for ConstantDataType
impl UnwindSafe for ConstantDataType
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
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