Enum fancy_duration::DurationPart
source · 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 copy 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§fn eq(&self, other: &DurationPart) -> bool
fn eq(&self, other: &DurationPart) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for DurationPart
impl PartialOrd for DurationPart
source§fn partial_cmp(&self, other: &DurationPart) -> Option<Ordering>
fn partial_cmp(&self, other: &DurationPart) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for DurationPart
impl StructuralEq for DurationPart
impl StructuralPartialEq for DurationPart
Auto Trait Implementations§
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