pub enum IntervalUnit {
Year,
Month,
Day,
Hour,
Minute,
Second,
Microsecond,
Nanosecond,
}Expand description
Time interval units.
Used for conversion and formatting.
Variants§
Implementations§
Source§impl IntervalUnit
impl IntervalUnit
pub fn from_bitmask(mask: u8) -> Result<IntervalUnit>
Trait Implementations§
Source§impl Clone for IntervalUnit
impl Clone for IntervalUnit
Source§fn clone(&self) -> IntervalUnit
fn clone(&self) -> IntervalUnit
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 IntervalUnit
impl Debug for IntervalUnit
Source§impl PartialEq for IntervalUnit
impl PartialEq for IntervalUnit
impl Copy for IntervalUnit
impl Eq for IntervalUnit
impl StructuralPartialEq for IntervalUnit
Auto Trait Implementations§
impl Freeze for IntervalUnit
impl RefUnwindSafe for IntervalUnit
impl Send for IntervalUnit
impl Sync for IntervalUnit
impl Unpin for IntervalUnit
impl UnsafeUnpin for IntervalUnit
impl UnwindSafe for IntervalUnit
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