pub enum Precision {
Weeks = 0,
Days = 1,
Hours = 2,
Minutes = 3,
Seconds = 4,
Nanoseconds = 5,
}Expand description
The granularity of a breakdown. A DurationBreakdown with a Minutes precision
would have possibly non-zero values for its weeks, days, hours, and minutes,
but 0 for its seconds and nanoseconds.
See the with_precision method on DurationBreakdown for more on how
Precision is used.
Variants§
Trait Implementations§
Source§impl PartialOrd for Precision
impl PartialOrd for Precision
impl Copy for Precision
impl Eq for Precision
impl StructuralPartialEq for Precision
Auto Trait Implementations§
impl Freeze for Precision
impl RefUnwindSafe for Precision
impl Send for Precision
impl Sync for Precision
impl Unpin for Precision
impl UnwindSafe for Precision
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