Enum number_prefix::Prefix
[−]
[src]
pub enum Prefix { Kilo, Mega, Giga, Tera, Peta, Exa, Zetta, Yotta, Kibi, Mibi, Gibi, Tebi, Pebi, Exbi, Zebi, Yobi, }
A numeric prefix, either binary or decimal.
Variants
Kilo
Mega
Giga
Tera
Peta
Exa
Zetta
Yotta
Kibi
Mibi
Gibi
Tebi
Pebi
Exbi
Zebi
Yobi
Trait Implementations
impl Debug for Prefix
[src]
impl Copy for Prefix
[src]
impl Clone for Prefix
[src]
fn clone(&self) -> Prefix
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for Prefix
[src]
impl PartialEq for Prefix
[src]
fn eq(&self, __arg_0: &Prefix) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Display for Prefix
[src]
impl PrefixNames for Prefix
[src]
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”).