[][src]Trait prodash::unit::DisplayValue

pub trait DisplayValue {
    fn display_unit(&self, w: &mut dyn Write, value: Step) -> Result;

    fn display_current_value(
        &self,
        w: &mut dyn Write,
        value: Step,
        _upper: Option<Step>
    ) -> Result { ... }
fn separator(
        &self,
        w: &mut dyn Write,
        _value: Step,
        _upper: Option<Step>
    ) -> Result { ... }
fn display_upper_bound(
        &self,
        w: &mut dyn Write,
        upper_bound: Step,
        _value: Step
    ) -> Result { ... }
fn display_percentage(&self, w: &mut dyn Write, percentage: f64) -> Result { ... }
fn display_throughput(
        &self,
        w: &mut dyn Write,
        throughput: Throughput
    ) -> Result { ... }
fn fraction_and_time_unit(
        &self,
        timespan: Duration
    ) -> (Option<f64>, &'static str) { ... } }

Required methods

fn display_unit(&self, w: &mut dyn Write, value: Step) -> Result

Loading content...

Provided methods

fn display_current_value(
    &self,
    w: &mut dyn Write,
    value: Step,
    _upper: Option<Step>
) -> Result

fn separator(
    &self,
    w: &mut dyn Write,
    _value: Step,
    _upper: Option<Step>
) -> Result

fn display_upper_bound(
    &self,
    w: &mut dyn Write,
    upper_bound: Step,
    _value: Step
) -> Result

fn display_percentage(&self, w: &mut dyn Write, percentage: f64) -> Result

fn display_throughput(
    &self,
    w: &mut dyn Write,
    throughput: Throughput
) -> Result

fn fraction_and_time_unit(
    &self,
    timespan: Duration
) -> (Option<f64>, &'static str)

Loading content...

Implementations on Foreign Types

impl DisplayValue for &'static str[src]

Loading content...

Implementors

impl DisplayValue for Human[src]

impl DisplayValue for Bytes[src]

impl DisplayValue for Duration[src]

impl DisplayValue for Range[src]

Loading content...