#[repr(transparent)]pub struct TimeUnit(pub i16);
Tuple Fields§
§0: i16
Implementations§
Source§impl TimeUnit
impl TimeUnit
pub const SECOND: Self = _
pub const MILLISECOND: Self = _
pub const MICROSECOND: Self = _
pub const NANOSECOND: Self = _
pub const ENUM_MIN: i16 = 0i16
pub const ENUM_MAX: i16 = 3i16
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 EndianScalar for TimeUnit
impl EndianScalar for TimeUnit
Source§impl Ord for TimeUnit
impl Ord for TimeUnit
Source§impl PartialOrd for TimeUnit
impl PartialOrd for TimeUnit
Source§impl<'a> Verifiable for TimeUnit
impl<'a> Verifiable for TimeUnit
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 TimeUnit
impl Eq for TimeUnit
impl SimpleToVerifyInSlice for TimeUnit
impl StructuralPartialEq for TimeUnit
Auto Trait Implementations§
impl Freeze for TimeUnit
impl RefUnwindSafe for TimeUnit
impl Send for TimeUnit
impl Sync for TimeUnit
impl Unpin for TimeUnit
impl UnwindSafe for TimeUnit
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