pub enum AmountOfSubstanceUnit {
Show 26 variants
yottamole,
zettamole,
examole,
petamole,
teramole,
gigamole,
megamole,
kilomole,
hectomole,
decamole,
mole,
decimole,
centimole,
millimole,
micromole,
nanomole,
picomole,
femtomole,
attomole,
zeptomole,
yoctomole,
particle,
standard_cubic_mol,
standard_liter,
standard_centimol,
standard_cubic_foot,
}Expand description
Amount of substance (base unit mole, mol).
Variants§
yottamole
zettamole
examole
petamole
teramole
gigamole
megamole
kilomole
hectomole
decamole
mole
decimole
centimole
millimole
micromole
nanomole
picomole
femtomole
attomole
zeptomole
yoctomole
particle
standard_cubic_mol
standard_liter
standard_centimol
standard_cubic_foot
Implementations§
source§impl AmountOfSubstanceUnit
impl AmountOfSubstanceUnit
sourcepub fn base_unit(&self) -> AmountOfSubstanceUnit
pub fn base_unit(&self) -> AmountOfSubstanceUnit
Get the base unit for this unit type (for length, as an example, this would be meter)
pub fn get_yottamole() -> Unit
pub fn get_zettamole() -> Unit
pub fn get_examole() -> Unit
pub fn get_petamole() -> Unit
pub fn get_teramole() -> Unit
pub fn get_gigamole() -> Unit
pub fn get_megamole() -> Unit
pub fn get_kilomole() -> Unit
pub fn get_hectomole() -> Unit
pub fn get_decamole() -> Unit
pub fn get_mole() -> Unit
pub fn get_decimole() -> Unit
pub fn get_centimole() -> Unit
pub fn get_millimole() -> Unit
pub fn get_micromole() -> Unit
pub fn get_nanomole() -> Unit
pub fn get_picomole() -> Unit
pub fn get_femtomole() -> Unit
pub fn get_attomole() -> Unit
pub fn get_zeptomole() -> Unit
pub fn get_yoctomole() -> Unit
pub fn get_particle() -> Unit
pub fn get_standard_cubic_mol() -> Unit
pub fn get_standard_liter() -> Unit
pub fn get_standard_centimol() -> Unit
pub fn get_standard_cubic_foot() -> Unit
sourcepub fn multiplier(&self) -> f64
pub fn multiplier(&self) -> f64
Multiplier of unit to its base quantity.
sourcepub fn abbreviation(&self) -> &'static str
pub fn abbreviation(&self) -> &'static str
Abbreviation of unit.
Trait Implementations§
source§impl Clone for AmountOfSubstanceUnit
impl Clone for AmountOfSubstanceUnit
source§fn clone(&self) -> AmountOfSubstanceUnit
fn clone(&self) -> AmountOfSubstanceUnit
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 AmountOfSubstanceUnit
impl Debug for AmountOfSubstanceUnit
source§impl Display for AmountOfSubstanceUnit
impl Display for AmountOfSubstanceUnit
source§impl From<&str> for AmountOfSubstanceUnit
impl From<&str> for AmountOfSubstanceUnit
source§impl From<AmountOfSubstanceUnit> for Unit
impl From<AmountOfSubstanceUnit> for Unit
source§fn from(value: AmountOfSubstanceUnit) -> Self
fn from(value: AmountOfSubstanceUnit) -> Self
Converts to this type from the input type.
source§impl Hash for AmountOfSubstanceUnit
impl Hash for AmountOfSubstanceUnit
source§impl PartialEq for AmountOfSubstanceUnit
impl PartialEq for AmountOfSubstanceUnit
source§fn eq(&self, other: &AmountOfSubstanceUnit) -> bool
fn eq(&self, other: &AmountOfSubstanceUnit) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for AmountOfSubstanceUnit
impl Eq for AmountOfSubstanceUnit
impl StructuralPartialEq for AmountOfSubstanceUnit
Auto Trait Implementations§
impl RefUnwindSafe for AmountOfSubstanceUnit
impl Send for AmountOfSubstanceUnit
impl Sync for AmountOfSubstanceUnit
impl Unpin for AmountOfSubstanceUnit
impl UnwindSafe for AmountOfSubstanceUnit
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