Trait number_prefix::PrefixNames
source · [−]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 with the first letter capitalised, such as “Mega”.