#[repr(u8)]pub enum UnitsOfTime {
Seconds = 0,
Minutes = 1,
Hours = 2,
Days = 3,
Weeks = 4,
Months = 5,
Years = 6,
Other(u8),
}Variants§
Trait Implementations§
Source§impl Clone for UnitsOfTime
impl Clone for UnitsOfTime
Source§fn clone(&self) -> UnitsOfTime
fn clone(&self) -> UnitsOfTime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UnitsOfTime
Source§impl Debug for UnitsOfTime
impl Debug for UnitsOfTime
Source§impl<'a> Decode<'a> for UnitsOfTime
impl<'a> Decode<'a> for UnitsOfTime
Source§fn decode(src: &'a [u8]) -> Result<(UnitsOfTime, usize), DecodeError>
fn decode(src: &'a [u8]) -> Result<(UnitsOfTime, usize), DecodeError>
Decode a value from a slice.
Source§impl Default for UnitsOfTime
impl Default for UnitsOfTime
Source§fn default() -> UnitsOfTime
fn default() -> UnitsOfTime
Returns the “default value” for a type. Read more
Source§impl Encode for UnitsOfTime
impl Encode for UnitsOfTime
impl Eq for UnitsOfTime
Source§impl From<u8> for UnitsOfTime
impl From<u8> for UnitsOfTime
Source§fn from(value: u8) -> UnitsOfTime
fn from(value: u8) -> UnitsOfTime
Converts to this type from the input type.
Source§impl Hash for UnitsOfTime
impl Hash for UnitsOfTime
Source§impl Ord for UnitsOfTime
impl Ord for UnitsOfTime
Source§fn cmp(&self, other: &UnitsOfTime) -> Ordering
fn cmp(&self, other: &UnitsOfTime) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for UnitsOfTime
impl PartialEq for UnitsOfTime
Source§impl PartialOrd for UnitsOfTime
impl PartialOrd for UnitsOfTime
impl StructuralPartialEq for UnitsOfTime
Auto Trait Implementations§
impl Freeze for UnitsOfTime
impl RefUnwindSafe for UnitsOfTime
impl Send for UnitsOfTime
impl Sync for UnitsOfTime
impl Unpin for UnitsOfTime
impl UnsafeUnpin for UnitsOfTime
impl UnwindSafe for UnitsOfTime
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