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

source

pub fn base_unit(&self) -> AmountOfSubstanceUnit

Get the base unit for this unit type (for length, as an example, this would be meter)

source

pub fn get_yottamole() -> Unit

source

pub fn get_zettamole() -> Unit

source

pub fn get_examole() -> Unit

source

pub fn get_petamole() -> Unit

source

pub fn get_teramole() -> Unit

source

pub fn get_gigamole() -> Unit

source

pub fn get_megamole() -> Unit

source

pub fn get_kilomole() -> Unit

source

pub fn get_hectomole() -> Unit

source

pub fn get_decamole() -> Unit

source

pub fn get_mole() -> Unit

source

pub fn get_decimole() -> Unit

source

pub fn get_centimole() -> Unit

source

pub fn get_millimole() -> Unit

source

pub fn get_micromole() -> Unit

source

pub fn get_nanomole() -> Unit

source

pub fn get_picomole() -> Unit

source

pub fn get_femtomole() -> Unit

source

pub fn get_attomole() -> Unit

source

pub fn get_zeptomole() -> Unit

source

pub fn get_yoctomole() -> Unit

source

pub fn get_particle() -> Unit

source

pub fn get_standard_cubic_mol() -> Unit

source

pub fn get_standard_liter() -> Unit

source

pub fn get_standard_centimol() -> Unit

source

pub fn get_standard_cubic_foot() -> Unit

source

pub fn multiplier(&self) -> f64

Multiplier of unit to its base quantity.

source

pub fn abbreviation(&self) -> &'static str

Abbreviation of unit.

source

pub fn singular(&self) -> &'static str

Singular name of unit.

source

pub fn plural(&self) -> &'static str

Plural name of unit.

source

pub fn units() -> &'static Vec<&'static str>

Available units for this [AmountOfSubstanceUnit].

Trait Implementations§

source§

impl Clone for AmountOfSubstanceUnit

source§

fn clone(&self) -> AmountOfSubstanceUnit

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AmountOfSubstanceUnit

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for AmountOfSubstanceUnit

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<&str> for AmountOfSubstanceUnit

source§

fn from(value: &str) -> Self

Converts to this type from the input type.
source§

impl From<AmountOfSubstanceUnit> for Unit

source§

fn from(value: AmountOfSubstanceUnit) -> Self

Converts to this type from the input type.
source§

impl Hash for AmountOfSubstanceUnit

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl IntoEnumIterator for AmountOfSubstanceUnit

§

type Iterator = AmountOfSubstanceUnitIter

source§

fn iter() -> AmountOfSubstanceUnitIter

source§

impl PartialEq for AmountOfSubstanceUnit

source§

fn eq(&self, other: &AmountOfSubstanceUnit) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for AmountOfSubstanceUnit

source§

impl Eq for AmountOfSubstanceUnit

source§

impl StructuralPartialEq for AmountOfSubstanceUnit

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.