pub struct FormattedDuration {
pub unit: &'static str,
pub integer: u64,
pub fraction: u8,
}Expand description
Approximate duration that includes unit, integral and fractional parts as fields.
This type is useful when you need custom formatting of the output, i.e. colors, locale-specific units etc.
Fields§
§unit: &'static strDuration unit.
integer: u64Integral part. Max. values is 213503982334601.
fraction: u8Fractional part. Max. value is 9.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormattedDuration
impl RefUnwindSafe for FormattedDuration
impl Send for FormattedDuration
impl Sync for FormattedDuration
impl Unpin for FormattedDuration
impl UnwindSafe for FormattedDuration
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