#[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 Ord for TimeUnit
impl Ord for TimeUnit
Source§impl PartialOrd for TimeUnit
impl PartialOrd for TimeUnit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more