Struct git_features::progress::unit::Human [−][src]
A helper for formatting numbers in a format easily read by humans in renderers, as in 2.54 million objects
Fields
name: &'static str
The name of the represented unit, like ‘items’ or ‘objects’.
formatter: Formatter
The formatter to format the actual numbers.
Implementations
Trait Implementations
impl DisplayValue for Human
[src]
impl DisplayValue for Human
[src]pub fn display_current_value(
&self,
w: &mut dyn Write,
value: usize,
_upper: Option<usize>
) -> Result<(), Error>
[src]
&self,
w: &mut dyn Write,
value: usize,
_upper: Option<usize>
) -> Result<(), Error>
pub fn display_upper_bound(
&self,
w: &mut dyn Write,
upper_bound: usize,
_value: usize
) -> Result<(), Error>
[src]
&self,
w: &mut dyn Write,
upper_bound: usize,
_value: usize
) -> Result<(), Error>
pub fn display_unit(
&self,
w: &mut dyn Write,
_value: usize
) -> Result<(), Error>
[src]
&self,
w: &mut dyn Write,
_value: usize
) -> Result<(), Error>
pub fn separator(
&self,
w: &mut dyn Write,
_value: usize,
_upper: Option<usize>
) -> Result<(), Error>
[src]
&self,
w: &mut dyn Write,
_value: usize,
_upper: Option<usize>
) -> Result<(), Error>
pub fn display_percentage(
&self,
w: &mut dyn Write,
percentage: f64
) -> Result<(), Error>
[src]
&self,
w: &mut dyn Write,
percentage: f64
) -> Result<(), Error>
pub fn display_throughput(
&self,
w: &mut dyn Write,
throughput: Throughput
) -> Result<(), Error>
[src]
&self,
w: &mut dyn Write,
throughput: Throughput
) -> Result<(), Error>
pub fn fraction_and_time_unit(
&self,
timespan: Duration
) -> (Option<f64>, &'static str)
[src]
&self,
timespan: Duration
) -> (Option<f64>, &'static str)
Auto Trait Implementations
impl RefUnwindSafe for Human
impl RefUnwindSafe for Human
impl UnwindSafe for Human
impl UnwindSafe for Human