Struct paralegal_spdg::utils::TruncatedHumanTime
source · pub struct TruncatedHumanTime(Duration);
Expand description
A struct with a Display
implementation taht renders a
std::time::Duration
in human readable form, similar to the humantime
crate, but instead of rendering with arbitrary precision it only renders two
“significant sections”, e.g. “2h 5min” or “2d 20h”. The sections are days
(d), hours (h), minutes (min), seconds (s), miliseconds (ms), microseconds
(μs) and nanoseconds (ns).
Tuple Fields§
§0: Duration
Trait Implementations§
source§impl Display for TruncatedHumanTime
impl Display for TruncatedHumanTime
Auto Trait Implementations§
impl RefUnwindSafe for TruncatedHumanTime
impl Send for TruncatedHumanTime
impl Sync for TruncatedHumanTime
impl Unpin for TruncatedHumanTime
impl UnwindSafe for TruncatedHumanTime
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