pub struct Human {
pub name: &'static str,
pub formatter: Formatter,
}
Expand description
A helper for formatting numbers in a format easily read by humans in renderers, as in 2.54 million objects
The name of the represented unit, like ‘items’ or ‘objects’.
The formatter to format the actual numbers.
A convenience method to create a new new instance and its formatter
and name
fields.
Formats the value using the given formatter. Read more
Display the absolute value
representing the current progress of an operation and write it to w
. Read more
Emit a token to separate two values. Read more
Emit the throughput
of an operation to w
.
Given a timespan
, return a fraction of the timespan based on the given unit, i.e. (possible fraction, unit
).
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.