Trait number_prefix::PrefixNames [−][src]
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
[src]
Returns the name in uppercase, such as “KILO”.
fn caps(&self) -> &'static str
[src]
Returns the name with the first letter capitalised, such as “Mega”.
fn lower(&self) -> &'static str
[src]
Returns the name in lowercase, such as “giga”.
fn symbol(&self) -> &'static str
[src]
Returns the short-hand symbol, such as “T” (for “tera”).