[][src]Trait number_prefix::PrefixNames

pub trait PrefixNames {
    fn upper(&self) -> &'static str;
fn caps(&self) -> &'static str;
fn lower(&self) -> &'static str;
fn symbol(&self) -> &'static str; }

Formatting methods for prefix, for when you want to output things other than just the short-hand symbols.

Required methods

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

Returns the name in uppercase, such as “KILO”.

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

Returns the name with the first letter capitalised, such as “Mega”.

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

Returns the name in lowercase, such as “giga”.

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

Returns the short-hand symbol, such as “T” (for “tera”).

Loading content...

Implementors

impl PrefixNames for Prefix[src]

Loading content...