pub enum TimeUnit {
NanoSeconds,
MicroSeconds,
MilliSeconds,
Seconds,
Minutes,
Hours,
Days,
}Variants§
Implementations§
Source§impl TimeUnit
impl TimeUnit
pub const VALUES: [TimeUnit; 7]
pub const fn label(&self) -> &'static str
pub const fn as_seconds(&self) -> f64
pub const fn nice_time_unit(seconds: f64) -> Self
pub const fn nice_speed_unit(seconds: f64) -> Self
pub fn pretty_print(milliseconds: u128) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimeUnit
impl RefUnwindSafe for TimeUnit
impl Send for TimeUnit
impl Sync for TimeUnit
impl Unpin for TimeUnit
impl UnsafeUnpin for TimeUnit
impl UnwindSafe for TimeUnit
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