Trait FormatIntegerValue

Source
pub trait FormatIntegerValue {
    // Required method
    fn format_unit(&self, unit: Unit) -> String;
}
Expand description

Trait for formatting integer values with their units

Required Methods§

Source

fn format_unit(&self, unit: Unit) -> String

Formats a value with its unit (singular or plural).

§Arguments
  • unit - Unit types with their singular/plural pairs.
§Returns

A formatted string.

Implementors§