pub enum SIPrefix {
Show 25 variants
QUECTO = -30,
RONTO = -27,
YOCTO = -24,
ZEPTO = -21,
ATTO = -18,
FEMTO = -15,
PICO = -12,
NANO = -9,
MICRO = -6,
MILLI = -3,
CENTI = -2,
DECI = -1,
NONE = 0,
DECA = 1,
HECTO = 2,
KILO = 3,
MEGA = 6,
GIGA = 9,
TERA = 12,
PETA = 15,
EXA = 18,
ZETTA = 21,
YOTTA = 24,
RONNA = 27,
QUETTA = 30,
}Expand description
Enum of unit prefixes defined for the System of Units (SI).
These prefixes can be added to unit names to name multiples and submultiples of the original unit.
Variants§
QUECTO = -30
10⁻³⁰
RONTO = -27
10⁻²⁷
YOCTO = -24
10⁻²⁴
ZEPTO = -21
10⁻²¹
ATTO = -18
10⁻¹⁸
FEMTO = -15
10⁻¹⁵
PICO = -12
10⁻¹²
NANO = -9
10⁻⁹
MICRO = -6
10⁻⁶
MILLI = -3
10⁻³
CENTI = -2
10⁻²
DECI = -1
10⁻¹
NONE = 0
10⁰
DECA = 1
10¹
HECTO = 2
10²
KILO = 3
10³
MEGA = 6
10⁶
GIGA = 9
10⁹
TERA = 12
10¹²
PETA = 15
10¹⁵
EXA = 18
10¹⁸
ZETTA = 21
10²¹
YOTTA = 24
10²⁴
RONNA = 27
10²⁷
QUETTA = 30
10³⁰
Implementations§
Trait Implementations§
impl Copy for SIPrefix
impl Eq for SIPrefix
impl StructuralPartialEq for SIPrefix
Auto Trait Implementations§
impl Freeze for SIPrefix
impl RefUnwindSafe for SIPrefix
impl Send for SIPrefix
impl Sync for SIPrefix
impl Unpin for SIPrefix
impl UnsafeUnpin for SIPrefix
impl UnwindSafe for SIPrefix
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