Struct git_features::progress::unit::Human[][src]

pub struct Human {
    pub name: &'static str,
    pub formatter: Formatter,
}

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

impl Human[src]

pub fn new(formatter: Formatter, name: &'static str) -> Human[src]

A convenience method to create a new new instance and its formatter and name fields.

Trait Implementations

impl Debug for Human[src]

impl DisplayValue for Human[src]

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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.