#[repr(i8)]pub enum PowerOfTenMultiplierType {
Show 19 variants
Nano = -9,
NegativeEight = -8,
NegativeSeven = -7,
Micro = -6,
NegativeFive = -5,
NegativeFour = -4,
Milli = -3,
Centi = -2,
Deci = -1,
None = 0,
Deca = 1,
Hecto = 2,
Kilo = 3,
Four = 4,
Five = 5,
Mega = 6,
Seven = 7,
Eight = 8,
Giga = 9,
}
Expand description
For many variants there is no Internal System of Units designated prefix, and as such the number is used as a name instead.
Variants§
Nano = -9
NegativeEight = -8
NegativeSeven = -7
Micro = -6
NegativeFive = -5
NegativeFour = -4
Milli = -3
Centi = -2
Deci = -1
None = 0
Deca = 1
Hecto = 2
Kilo = 3
Four = 4
Five = 5
Mega = 6
Seven = 7
Eight = 8
Giga = 9
Trait Implementations§
source§impl Clone for PowerOfTenMultiplierType
impl Clone for PowerOfTenMultiplierType
source§fn clone(&self) -> PowerOfTenMultiplierType
fn clone(&self) -> PowerOfTenMultiplierType
Returns a copy 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 PowerOfTenMultiplierType
impl Debug for PowerOfTenMultiplierType
source§impl Default for PowerOfTenMultiplierType
impl Default for PowerOfTenMultiplierType
source§fn default() -> PowerOfTenMultiplierType
fn default() -> PowerOfTenMultiplierType
Returns the “default value” for a type. Read more
source§impl Ord for PowerOfTenMultiplierType
impl Ord for PowerOfTenMultiplierType
source§fn cmp(&self, other: &PowerOfTenMultiplierType) -> Ordering
fn cmp(&self, other: &PowerOfTenMultiplierType) -> Ordering
1.21.0 · 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 PartialEq<PowerOfTenMultiplierType> for PowerOfTenMultiplierType
impl PartialEq<PowerOfTenMultiplierType> for PowerOfTenMultiplierType
source§fn eq(&self, other: &PowerOfTenMultiplierType) -> bool
fn eq(&self, other: &PowerOfTenMultiplierType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PowerOfTenMultiplierType> for PowerOfTenMultiplierType
impl PartialOrd<PowerOfTenMultiplierType> for PowerOfTenMultiplierType
source§fn partial_cmp(&self, other: &PowerOfTenMultiplierType) -> Option<Ordering>
fn partial_cmp(&self, other: &PowerOfTenMultiplierType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl YaDeserialize for PowerOfTenMultiplierType
impl YaDeserialize for PowerOfTenMultiplierType
source§impl YaSerialize for PowerOfTenMultiplierType
impl YaSerialize for PowerOfTenMultiplierType
fn name() -> &'static strwhere Self: Sized,
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>where Self: Sized,
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>where Self: Sized,
impl Copy for PowerOfTenMultiplierType
impl Eq for PowerOfTenMultiplierType
impl StructuralEq for PowerOfTenMultiplierType
impl StructuralPartialEq for PowerOfTenMultiplierType
Auto Trait Implementations§
impl RefUnwindSafe for PowerOfTenMultiplierType
impl Send for PowerOfTenMultiplierType
impl Sync for PowerOfTenMultiplierType
impl Unpin for PowerOfTenMultiplierType
impl UnwindSafe for PowerOfTenMultiplierType
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