Available on crate feature 
unit-human only.Expand description
A helper for formatting numbers in a format easily read by humans in renderers, as in 2.54 million objects
Fields§
§name: &'static strThe name of the represented unit, like ‘items’ or ‘objects’.
formatter: FormatterThe formatter to format the actual numbers.
Implementations§
Trait Implementations§
source§impl DisplayValue for Human
 
impl DisplayValue for Human
source§fn display_current_value(
    &self,
    w: &mut dyn Write,
    value: usize,
    _upper: Option<usize>
) -> Result<(), Error>
 
fn display_current_value(
    &self,
    w: &mut dyn Write,
    value: usize,
    _upper: Option<usize>
) -> Result<(), Error>
Display the absolute 
value representing the current progress of an operation and write it to w. Read moresource§fn display_upper_bound(
    &self,
    w: &mut dyn Write,
    upper_bound: usize,
    _value: usize
) -> Result<(), Error>
 
fn display_upper_bound(
    &self,
    w: &mut dyn Write,
    upper_bound: usize,
    _value: usize
) -> Result<(), Error>
source§fn separator(
    &self,
    w: &mut dyn Write,
    _value: usize,
    _upper: Option<usize>
) -> Result<(), Error>
 
fn separator(
    &self,
    w: &mut dyn Write,
    _value: usize,
    _upper: Option<usize>
) -> Result<(), Error>
Emit a token to separate two values. Read more
source§fn display_percentage(
    &self,
    w: &mut dyn Write,
    percentage: f64
) -> Result<(), Error>
 
fn display_percentage(
    &self,
    w: &mut dyn Write,
    percentage: f64
) -> Result<(), Error>
Emit 
percentage to w.source§fn display_throughput(
    &self,
    w: &mut dyn Write,
    throughput: &Throughput
) -> Result<(), Error>
 
fn display_throughput(
    &self,
    w: &mut dyn Write,
    throughput: &Throughput
) -> Result<(), Error>
Emit the 
throughput of an operation to w.