pub enum DurationPart {
Years,
Months,
Weeks,
Days,
Hours,
Minutes,
Seconds,
Milliseconds,
Microseconds,
Nanoseconds,
}
Variants§
Trait Implementations§
Source§impl Clone for DurationPart
impl Clone for DurationPart
Source§fn clone(&self) -> DurationPart
fn clone(&self) -> DurationPart
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 DurationPart
impl Debug for DurationPart
Source§impl Ord for DurationPart
impl Ord for DurationPart
Source§fn cmp(&self, other: &DurationPart) -> Ordering
fn cmp(&self, other: &DurationPart) -> 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 DurationPart
impl PartialEq for DurationPart
Source§impl PartialOrd for DurationPart
impl PartialOrd for DurationPart
impl Eq for DurationPart
impl StructuralPartialEq for DurationPart
Auto Trait Implementations§
impl Freeze for DurationPart
impl RefUnwindSafe for DurationPart
impl Send for DurationPart
impl Sync for DurationPart
impl Unpin for DurationPart
impl UnwindSafe for DurationPart
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