#[non_exhaustive]pub enum UnitPrefix {
Show 17 variants
Exa,
Peta,
Tera,
Giga,
Mega,
Kilo,
Hecto,
Deca,
None,
Deci,
Centi,
Milli,
Micro,
Nano,
Pico,
Femto,
Atto,
}Expand description
SI unit prefix.
Metric prefixes used with units of measurement.
German: Mengeneinheitenpraefix
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Exa
Exa (10^18)
Peta
Peta (10^15)
Tera
Tera (10^12)
Giga
Giga (10^9)
Mega
Mega (10^6)
Kilo
Kilo (10^3)
Hecto
Hecto (10^2)
Deca
Deca (10^1)
None
No prefix (10^0)
Deci
Deci (10^-1)
Centi
Centi (10^-2)
Milli
Milli (10^-3)
Micro
Micro (10^-6)
Nano
Nano (10^-9)
Pico
Pico (10^-12)
Femto
Femto (10^-15)
Atto
Atto (10^-18)
Implementations§
Source§impl UnitPrefix
impl UnitPrefix
Trait Implementations§
Source§impl Clone for UnitPrefix
impl Clone for UnitPrefix
Source§fn clone(&self) -> UnitPrefix
fn clone(&self) -> UnitPrefix
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnitPrefix
impl Debug for UnitPrefix
Source§impl<'de> Deserialize<'de> for UnitPrefix
impl<'de> Deserialize<'de> for UnitPrefix
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for UnitPrefix
impl Hash for UnitPrefix
Source§impl PartialEq for UnitPrefix
impl PartialEq for UnitPrefix
Source§impl Serialize for UnitPrefix
impl Serialize for UnitPrefix
impl Copy for UnitPrefix
impl Eq for UnitPrefix
impl StructuralPartialEq for UnitPrefix
Auto Trait Implementations§
impl Freeze for UnitPrefix
impl RefUnwindSafe for UnitPrefix
impl Send for UnitPrefix
impl Sync for UnitPrefix
impl Unpin for UnitPrefix
impl UnwindSafe for UnitPrefix
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