Struct git_features::progress::unit::human::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]
pub fn display_current_value(
&self,
w: &mut dyn Write,
value: usize,
_upper: Option<usize>
) -> Result<(), Error>
[src]Display the absolute value
representing the current progress of an operation and write it to w
. Read more
pub fn display_upper_bound(
&self,
w: &mut dyn Write,
upper_bound: usize,
_value: usize
) -> Result<(), Error>
[src]
pub fn display_upper_bound(
&self,
w: &mut dyn Write,
upper_bound: usize,
_value: usize
) -> Result<(), Error>
[src]Emit the upper_bound
to w
. Read more
pub fn display_unit(
&self,
w: &mut dyn Write,
_value: usize
) -> Result<(), Error>
[src]
pub fn display_unit(
&self,
w: &mut dyn Write,
_value: usize
) -> Result<(), Error>
[src]Emit the unit of value
to w
. Read more
fn separator(
&self,
w: &mut dyn Write,
_value: usize,
_upper: Option<usize>
) -> Result<(), Error>
[src]
fn separator(
&self,
w: &mut dyn Write,
_value: usize,
_upper: Option<usize>
) -> Result<(), Error>
[src]Emit a token to separate two values. Read more
fn display_percentage(
&self,
w: &mut dyn Write,
percentage: f64
) -> Result<(), Error>
[src]
fn display_percentage(
&self,
w: &mut dyn Write,
percentage: f64
) -> Result<(), Error>
[src]Emit percentage
to w
.
fn display_throughput(
&self,
w: &mut dyn Write,
throughput: Throughput
) -> Result<(), Error>
[src]
fn display_throughput(
&self,
w: &mut dyn Write,
throughput: Throughput
) -> Result<(), Error>
[src]Emit the throughput
of an operation to w
.
Auto Trait Implementations
impl RefUnwindSafe for Human
impl Send for Human
impl Sync for Human
impl Unpin for Human
impl UnwindSafe for Human
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self