pub struct Duration;
Expand description
A marker for formatting numbers as duration in renderers, as in 7d4h20m10s
.
Trait Implementations§
source§impl DisplayValue for Duration
impl DisplayValue for Duration
source§fn display_current_value(
&self,
w: &mut dyn Write,
value: Step,
_upper: Option<Step>
) -> Result
fn display_current_value( &self, w: &mut dyn Write, value: Step, _upper: Option<Step> ) -> Result
Display the absolute
value
representing the current progress of an operation and write it to w
. Read moresource§fn separator(
&self,
w: &mut dyn Write,
_value: Step,
_upper: Option<Step>
) -> Result
fn separator( &self, w: &mut dyn Write, _value: Step, _upper: Option<Step> ) -> Result
Emit a token to separate two values. Read more
source§fn display_upper_bound(
&self,
w: &mut dyn Write,
upper_bound: Step,
_value: Step
) -> Result
fn display_upper_bound( &self, w: &mut dyn Write, upper_bound: Step, _value: Step ) -> Result
source§fn dyn_hash(&self, state: &mut dyn Hasher)
fn dyn_hash(&self, state: &mut dyn Hasher)
A way to hash our state without using generics. Read more
source§fn display_percentage(&self, w: &mut dyn Write, percentage: f64) -> Result
fn display_percentage(&self, w: &mut dyn Write, percentage: f64) -> Result
Emit
percentage
to w
.source§fn display_throughput(
&self,
w: &mut dyn Write,
throughput: &Throughput
) -> Result
fn display_throughput( &self, w: &mut dyn Write, throughput: &Throughput ) -> Result
Emit the
throughput
of an operation to w
.source§impl Ord for Duration
impl Ord for Duration
source§impl PartialEq for Duration
impl PartialEq for Duration
source§impl PartialOrd for Duration
impl PartialOrd for Duration
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 Copy for Duration
impl Eq for Duration
impl StructuralEq for Duration
impl StructuralPartialEq for Duration
Auto Trait Implementations§
impl RefUnwindSafe for Duration
impl Send for Duration
impl Sync for Duration
impl Unpin for Duration
impl UnwindSafe for Duration
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more