#[repr(u8)]pub enum Prefix {
Show 21 variants
Quecto = 0,
Ronto = 1,
Yocto = 2,
Zepto = 3,
Atto = 4,
Femto = 5,
Pico = 6,
Nano = 7,
Micro = 8,
Milli = 9,
None = 10,
Kilo = 11,
Mega = 12,
Giga = 13,
Tera = 14,
Peta = 15,
Exa = 16,
Zetta = 17,
Yotta = 18,
Ronna = 19,
Quetta = 20,
}Expand description
SI unit prefix.
Variants§
Quecto = 0
“q”.
Ronto = 1
“r”.
Yocto = 2
“y”.
Zepto = 3
“z”.
Atto = 4
“a”.
Femto = 5
“f”.
Pico = 6
“p”.
Nano = 7
“n”.
Micro = 8
“μ”.
Milli = 9
“m”.
None = 10
“”.
Kilo = 11
“k”.
Mega = 12
“M”.
Giga = 13
“G”.
Tera = 14
“T”.
Peta = 15
“P”.
Exa = 16
“E”.
Zetta = 17
“Z”.
Yotta = 18
“Y”.
Ronna = 19
“R”.
Quetta = 20
“Q”.
Implementations§
Trait Implementations§
impl Copy for Prefix
impl Eq for Prefix
Source§impl Ord for Prefix
impl Ord for Prefix
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Prefix
impl PartialOrd for Prefix
impl StructuralPartialEq for Prefix
Auto Trait Implementations§
impl Freeze for Prefix
impl RefUnwindSafe for Prefix
impl Send for Prefix
impl Sync for Prefix
impl Unpin for Prefix
impl UnsafeUnpin for Prefix
impl UnwindSafe for Prefix
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more