pub trait Unit {
    // Required methods
    fn one(&self) -> &'static str;
    fn many(&self) -> &'static str;
    fn format(
        &self,
        f: &mut Formatter<'_>,
        value: u64,
        allow_zero: bool,
        started: &mut bool
    ) -> Result;
}

Required Methods§

source

fn one(&self) -> &'static str

source

fn many(&self) -> &'static str

source

fn format( &self, f: &mut Formatter<'_>, value: u64, allow_zero: bool, started: &mut bool ) -> Result

Implementors§