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

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

Required methods

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

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

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

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

Implementors