pub struct Amount<T: NumLike> {
pub mol: T,
}Expand description
The amount unit type, defined as moles in SI units
Fields§
§mol: TThe value of this Amount in moles
Implementations§
Source§impl<T> Amount<T>where
T: NumLike,
impl<T> Amount<T>where
T: NumLike,
Sourcepub fn unit_symbol() -> &'static str
pub fn unit_symbol() -> &'static str
Returns the abbreviated name or symbol of amount: “mol” for moles
Sourcepub fn from_moles(moles: T) -> Self
pub fn from_moles(moles: T) -> Self
Returns a new amount value from the given number of moles
§Arguments
moles- Any number-like type, representing a quantity of moles
Source§impl<T> Amount<T>
impl<T> Amount<T>
Sourcepub fn to_count(&self) -> T
pub fn to_count(&self) -> T
Returns a copy of this amount value in count
Note: This method is not available for f32 and other number types lacking the From<f64> trait
Sourcepub fn from_count(count: T) -> Self
pub fn from_count(count: T) -> Self
Returns a new amount value from the given number of count
Note: This method is not available for f32 and other number types lacking the From<f64> trait
§Arguments
count- Any number-like type, representing a quantity of count
Sourcepub fn to_mmol(&self) -> T
pub fn to_mmol(&self) -> T
Returns a copy of this amount value in millimoles
Note: This method is not available for f32 and other number types lacking the From<f64> trait
Sourcepub fn from_mmol(mmol: T) -> Self
pub fn from_mmol(mmol: T) -> Self
Returns a new amount value from the given number of millimoles
Note: This method is not available for f32 and other number types lacking the From<f64> trait
§Arguments
mmol- Any number-like type, representing a quantity of millimoles
Sourcepub fn to_umol(&self) -> T
pub fn to_umol(&self) -> T
Returns a copy of this amount value in micromoles
Note: This method is not available for f32 and other number types lacking the From<f64> trait
Sourcepub fn from_umol(umol: T) -> Self
pub fn from_umol(umol: T) -> Self
Returns a new amount value from the given number of micromoles
Note: This method is not available for f32 and other number types lacking the From<f64> trait
§Arguments
umol- Any number-like type, representing a quantity of micromoles
Sourcepub fn to_nmol(&self) -> T
pub fn to_nmol(&self) -> T
Returns a copy of this amount value in nanomoles
Note: This method is not available for f32 and other number types lacking the From<f64> trait
Sourcepub fn from_nmol(nmol: T) -> Self
pub fn from_nmol(nmol: T) -> Self
Returns a new amount value from the given number of nanomoles
Note: This method is not available for f32 and other number types lacking the From<f64> trait
§Arguments
nmol- Any number-like type, representing a quantity of nanomoles
Trait Implementations§
Source§impl<T: NumLike> Add for &Amount<T>
Adding two unit values of the same type returns a new unit value of the same type (automatically clones the referenced data for convenient ergonomics)
impl<T: NumLike> Add for &Amount<T>
Adding two unit values of the same type returns a new unit value of the same type (automatically clones the referenced data for convenient ergonomics)
Source§impl<T: NumLike> Add for Amount<T>
Adding two unit values of the same type returns a new unit value of the same type
impl<T: NumLike> Add for Amount<T>
Adding two unit values of the same type returns a new unit value of the same type
Source§impl<T: NumLike> AddAssign for Amount<T>
Adds the given unit value to this unit value
impl<T: NumLike> AddAssign for Amount<T>
Adds the given unit value to this unit value
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+= operation. Read moreSource§impl<T> Div<&Amount<T>> for &CatalyticActivity<T>where
T: NumLike,
Dividing a CatalyticActivity by a Amount returns a value of type Frequency
impl<T> Div<&Amount<T>> for &CatalyticActivity<T>where
T: NumLike,
Dividing a CatalyticActivity by a Amount returns a value of type Frequency
Source§impl<T> Div<&Amount<T>> for &Concentration<T>where
T: NumLike,
Dividing a Concentration by a Amount returns a value of type InverseVolume
impl<T> Div<&Amount<T>> for &Concentration<T>where
T: NumLike,
Dividing a Concentration by a Amount returns a value of type InverseVolume
Source§impl<T> Div<&Amount<T>> for &Mass<T>where
T: NumLike,
Dividing a Mass by a Amount returns a value of type MolarMass
impl<T> Div<&Amount<T>> for &Mass<T>where
T: NumLike,
Dividing a Mass by a Amount returns a value of type MolarMass
Source§impl<T> Div<&Amount<T>> for &Molality<T>where
T: NumLike,
Dividing a Molality by a Amount returns a value of type InverseMass
impl<T> Div<&Amount<T>> for &Molality<T>where
T: NumLike,
Dividing a Molality by a Amount returns a value of type InverseMass
Source§impl<T> Div<&Amount<T>> for &Time<T>where
T: NumLike,
Dividing a Time by a Amount returns a value of type InverseCatalyticActivity
impl<T> Div<&Amount<T>> for &Time<T>where
T: NumLike,
Dividing a Time by a Amount returns a value of type InverseCatalyticActivity
Source§impl<T> Div<&Amount<T>> for &Volume<T>where
T: NumLike,
Dividing a Volume by a Amount returns a value of type MolarVolume
impl<T> Div<&Amount<T>> for &Volume<T>where
T: NumLike,
Dividing a Volume by a Amount returns a value of type MolarVolume
Source§impl<T> Div<&Amount<T>> for &f32
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
impl<T> Div<&Amount<T>> for &f32
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
Source§impl<T> Div<&Amount<T>> for &f64
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
impl<T> Div<&Amount<T>> for &f64
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
Source§impl<T> Div<&Amount<T>> for &i32
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
impl<T> Div<&Amount<T>> for &i32
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
Source§impl<T> Div<&Amount<T>> for &i64
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
impl<T> Div<&Amount<T>> for &i64
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
Source§impl<T> Div<&Amount<T>> for CatalyticActivity<T>where
T: NumLike,
Dividing a CatalyticActivity by a Amount returns a value of type Frequency
impl<T> Div<&Amount<T>> for CatalyticActivity<T>where
T: NumLike,
Dividing a CatalyticActivity by a Amount returns a value of type Frequency
Source§impl<T> Div<&Amount<T>> for Concentration<T>where
T: NumLike,
Dividing a Concentration by a Amount returns a value of type InverseVolume
impl<T> Div<&Amount<T>> for Concentration<T>where
T: NumLike,
Dividing a Concentration by a Amount returns a value of type InverseVolume
Source§impl<T> Div<&Amount<T>> for Mass<T>where
T: NumLike,
Dividing a Mass by a Amount returns a value of type MolarMass
impl<T> Div<&Amount<T>> for Mass<T>where
T: NumLike,
Dividing a Mass by a Amount returns a value of type MolarMass
Source§impl<T> Div<&Amount<T>> for Molality<T>where
T: NumLike,
Dividing a Molality by a Amount returns a value of type InverseMass
impl<T> Div<&Amount<T>> for Molality<T>where
T: NumLike,
Dividing a Molality by a Amount returns a value of type InverseMass
Source§impl<T> Div<&Amount<T>> for Time<T>where
T: NumLike,
Dividing a Time by a Amount returns a value of type InverseCatalyticActivity
impl<T> Div<&Amount<T>> for Time<T>where
T: NumLike,
Dividing a Time by a Amount returns a value of type InverseCatalyticActivity
Source§impl<T> Div<&Amount<T>> for Volume<T>where
T: NumLike,
Dividing a Volume by a Amount returns a value of type MolarVolume
impl<T> Div<&Amount<T>> for Volume<T>where
T: NumLike,
Dividing a Volume by a Amount returns a value of type MolarVolume
Source§impl<T> Div<&Amount<T>> for f32
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
impl<T> Div<&Amount<T>> for f32
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
Source§impl<T> Div<&Amount<T>> for f64
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
impl<T> Div<&Amount<T>> for f64
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
Source§impl<T> Div<&Amount<T>> for i32
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
impl<T> Div<&Amount<T>> for i32
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
Source§impl<T> Div<&Amount<T>> for i64
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
impl<T> Div<&Amount<T>> for i64
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
Source§impl<T> Div<&CatalyticActivity<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a CatalyticActivity returns a value of type Time
impl<T> Div<&CatalyticActivity<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a CatalyticActivity returns a value of type Time
Source§impl<T> Div<&CatalyticActivity<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a CatalyticActivity returns a value of type Time
impl<T> Div<&CatalyticActivity<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a CatalyticActivity returns a value of type Time
Source§impl<T> Div<&Concentration<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Concentration returns a value of type Volume
impl<T> Div<&Concentration<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Concentration returns a value of type Volume
Source§impl<T> Div<&Concentration<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Concentration returns a value of type Volume
impl<T> Div<&Concentration<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Concentration returns a value of type Volume
Source§impl<T> Div<&Mass<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Mass returns a value of type Molality
impl<T> Div<&Mass<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Mass returns a value of type Molality
Source§impl<T> Div<&Mass<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Mass returns a value of type Molality
impl<T> Div<&Mass<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Mass returns a value of type Molality
Source§impl<T> Div<&Molality<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Molality returns a value of type Mass
impl<T> Div<&Molality<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Molality returns a value of type Mass
Source§impl<T> Div<&Molality<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Molality returns a value of type Mass
impl<T> Div<&Molality<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Molality returns a value of type Mass
Source§impl<T> Div<&T> for &Amount<T>where
T: NumLike,
Dividing a unit value by a scalar value returns a unit value
impl<T> Div<&T> for &Amount<T>where
T: NumLike,
Dividing a unit value by a scalar value returns a unit value
Source§impl<T> Div<&T> for Amount<T>where
T: NumLike,
Dividing a unit value by a scalar value returns a unit value
impl<T> Div<&T> for Amount<T>where
T: NumLike,
Dividing a unit value by a scalar value returns a unit value
Source§impl<T> Div<&Time<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Time returns a value of type CatalyticActivity
impl<T> Div<&Time<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Time returns a value of type CatalyticActivity
Source§impl<T> Div<&Time<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Time returns a value of type CatalyticActivity
impl<T> Div<&Time<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Time returns a value of type CatalyticActivity
Source§impl<T> Div<&Volume<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Volume returns a value of type Concentration
impl<T> Div<&Volume<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Volume returns a value of type Concentration
Source§impl<T> Div<&Volume<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Volume returns a value of type Concentration
impl<T> Div<&Volume<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Volume returns a value of type Concentration
Source§impl<T> Div<Amount<T>> for &CatalyticActivity<T>where
T: NumLike,
Dividing a CatalyticActivity by a Amount returns a value of type Frequency
impl<T> Div<Amount<T>> for &CatalyticActivity<T>where
T: NumLike,
Dividing a CatalyticActivity by a Amount returns a value of type Frequency
Source§impl<T> Div<Amount<T>> for &Concentration<T>where
T: NumLike,
Dividing a Concentration by a Amount returns a value of type InverseVolume
impl<T> Div<Amount<T>> for &Concentration<T>where
T: NumLike,
Dividing a Concentration by a Amount returns a value of type InverseVolume
Source§impl<T> Div<Amount<T>> for &Mass<T>where
T: NumLike,
Dividing a Mass by a Amount returns a value of type MolarMass
impl<T> Div<Amount<T>> for &Mass<T>where
T: NumLike,
Dividing a Mass by a Amount returns a value of type MolarMass
Source§impl<T> Div<Amount<T>> for &Molality<T>where
T: NumLike,
Dividing a Molality by a Amount returns a value of type InverseMass
impl<T> Div<Amount<T>> for &Molality<T>where
T: NumLike,
Dividing a Molality by a Amount returns a value of type InverseMass
Source§impl<T> Div<Amount<T>> for &Time<T>where
T: NumLike,
Dividing a Time by a Amount returns a value of type InverseCatalyticActivity
impl<T> Div<Amount<T>> for &Time<T>where
T: NumLike,
Dividing a Time by a Amount returns a value of type InverseCatalyticActivity
Source§impl<T> Div<Amount<T>> for &Volume<T>where
T: NumLike,
Dividing a Volume by a Amount returns a value of type MolarVolume
impl<T> Div<Amount<T>> for &Volume<T>where
T: NumLike,
Dividing a Volume by a Amount returns a value of type MolarVolume
Source§impl<T> Div<Amount<T>> for &f32
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
impl<T> Div<Amount<T>> for &f32
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
Source§impl<T> Div<Amount<T>> for &f64
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
impl<T> Div<Amount<T>> for &f64
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
Source§impl<T> Div<Amount<T>> for &i32
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
impl<T> Div<Amount<T>> for &i32
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
Source§impl<T> Div<Amount<T>> for &i64
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
impl<T> Div<Amount<T>> for &i64
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
Source§impl<T> Div<Amount<T>> for CatalyticActivity<T>where
T: NumLike,
Dividing a CatalyticActivity by a Amount returns a value of type Frequency
impl<T> Div<Amount<T>> for CatalyticActivity<T>where
T: NumLike,
Dividing a CatalyticActivity by a Amount returns a value of type Frequency
Source§impl<T> Div<Amount<T>> for Concentration<T>where
T: NumLike,
Dividing a Concentration by a Amount returns a value of type InverseVolume
impl<T> Div<Amount<T>> for Concentration<T>where
T: NumLike,
Dividing a Concentration by a Amount returns a value of type InverseVolume
Source§impl<T> Div<Amount<T>> for Mass<T>where
T: NumLike,
Dividing a Mass by a Amount returns a value of type MolarMass
impl<T> Div<Amount<T>> for Mass<T>where
T: NumLike,
Dividing a Mass by a Amount returns a value of type MolarMass
Source§impl<T> Div<Amount<T>> for Molality<T>where
T: NumLike,
Dividing a Molality by a Amount returns a value of type InverseMass
impl<T> Div<Amount<T>> for Molality<T>where
T: NumLike,
Dividing a Molality by a Amount returns a value of type InverseMass
Source§impl<T> Div<Amount<T>> for Time<T>where
T: NumLike,
Dividing a Time by a Amount returns a value of type InverseCatalyticActivity
impl<T> Div<Amount<T>> for Time<T>where
T: NumLike,
Dividing a Time by a Amount returns a value of type InverseCatalyticActivity
Source§impl<T> Div<Amount<T>> for Volume<T>where
T: NumLike,
Dividing a Volume by a Amount returns a value of type MolarVolume
impl<T> Div<Amount<T>> for Volume<T>where
T: NumLike,
Dividing a Volume by a Amount returns a value of type MolarVolume
Source§impl<T> Div<Amount<T>> for f32
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
impl<T> Div<Amount<T>> for f32
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
Source§impl<T> Div<Amount<T>> for f64
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
impl<T> Div<Amount<T>> for f64
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
Source§impl<T> Div<Amount<T>> for i32
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
impl<T> Div<Amount<T>> for i32
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
Source§impl<T> Div<Amount<T>> for i64
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
impl<T> Div<Amount<T>> for i64
Dividing a scalar value by a Amount unit value returns a value of type InverseAmount
Source§impl<T> Div<CatalyticActivity<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a CatalyticActivity returns a value of type Time
impl<T> Div<CatalyticActivity<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a CatalyticActivity returns a value of type Time
Source§impl<T> Div<CatalyticActivity<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a CatalyticActivity returns a value of type Time
impl<T> Div<CatalyticActivity<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a CatalyticActivity returns a value of type Time
Source§impl<T> Div<Concentration<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Concentration returns a value of type Volume
impl<T> Div<Concentration<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Concentration returns a value of type Volume
Source§impl<T> Div<Concentration<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Concentration returns a value of type Volume
impl<T> Div<Concentration<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Concentration returns a value of type Volume
Source§impl<T> Div<Mass<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Mass returns a value of type Molality
impl<T> Div<Mass<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Mass returns a value of type Molality
Source§impl<T> Div<Mass<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Mass returns a value of type Molality
impl<T> Div<Mass<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Mass returns a value of type Molality
Source§impl<T> Div<Molality<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Molality returns a value of type Mass
impl<T> Div<Molality<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Molality returns a value of type Mass
Source§impl<T> Div<Molality<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Molality returns a value of type Mass
impl<T> Div<Molality<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Molality returns a value of type Mass
Source§impl<T: NumLike> Div<T> for &Amount<T>
Dividing a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
impl<T: NumLike> Div<T> for &Amount<T>
Dividing a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
Source§impl<T: NumLike> Div<T> for Amount<T>
Dividing a unit value by a scalar value returns a unit value
impl<T: NumLike> Div<T> for Amount<T>
Dividing a unit value by a scalar value returns a unit value
Source§impl<T> Div<Time<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Time returns a value of type CatalyticActivity
impl<T> Div<Time<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Time returns a value of type CatalyticActivity
Source§impl<T> Div<Time<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Time returns a value of type CatalyticActivity
impl<T> Div<Time<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Time returns a value of type CatalyticActivity
Source§impl<T> Div<Volume<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Volume returns a value of type Concentration
impl<T> Div<Volume<T>> for &Amount<T>where
T: NumLike,
Dividing a Amount by a Volume returns a value of type Concentration
Source§impl<T> Div<Volume<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Volume returns a value of type Concentration
impl<T> Div<Volume<T>> for Amount<T>where
T: NumLike,
Dividing a Amount by a Volume returns a value of type Concentration
Source§impl<T: NumLike> Div for &Amount<T>
Dividing a unit value by another of the same type returns a scalar value (automatically clones the referenced data for convenient ergonomics)
impl<T: NumLike> Div for &Amount<T>
Dividing a unit value by another of the same type returns a scalar value (automatically clones the referenced data for convenient ergonomics)
Source§impl<T: NumLike> Div for Amount<T>
Dividing a unit value by another of the same type returns a scalar value
impl<T: NumLike> Div for Amount<T>
Dividing a unit value by another of the same type returns a scalar value
Source§impl<T: NumLike> DivAssign<T> for Amount<T>
Divides this unit value by a scalar
impl<T: NumLike> DivAssign<T> for Amount<T>
Divides this unit value by a scalar
Source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
/= operation. Read moreSource§impl<T> Hash for Amount<T>
This struct implements the Hash trait if it’s member data type also has the Hash trait
impl<T> Hash for Amount<T>
This struct implements the Hash trait if it’s member data type also has the Hash trait
Source§impl<T> Mul<&Amount<T>> for &Frequency<T>where
T: NumLike,
Multiplying a Frequency by a Amount returns a value of type CatalyticActivity
impl<T> Mul<&Amount<T>> for &Frequency<T>where
T: NumLike,
Multiplying a Frequency by a Amount returns a value of type CatalyticActivity
Source§impl<T> Mul<&Amount<T>> for &InverseCatalyticActivity<T>where
T: NumLike,
Multiplying a InverseCatalyticActivity by a Amount returns a value of type Time
impl<T> Mul<&Amount<T>> for &InverseCatalyticActivity<T>where
T: NumLike,
Multiplying a InverseCatalyticActivity by a Amount returns a value of type Time
Source§impl<T> Mul<&Amount<T>> for &InverseMass<T>where
T: NumLike,
Multiplying a InverseMass by a Amount returns a value of type Molality
impl<T> Mul<&Amount<T>> for &InverseMass<T>where
T: NumLike,
Multiplying a InverseMass by a Amount returns a value of type Molality
Source§impl<T> Mul<&Amount<T>> for &InverseVolume<T>where
T: NumLike,
Multiplying a InverseVolume by a Amount returns a value of type Concentration
impl<T> Mul<&Amount<T>> for &InverseVolume<T>where
T: NumLike,
Multiplying a InverseVolume by a Amount returns a value of type Concentration
Source§impl<T> Mul<&Amount<T>> for &MolarMass<T>where
T: NumLike,
Multiplying a MolarMass by a Amount returns a value of type Mass
impl<T> Mul<&Amount<T>> for &MolarMass<T>where
T: NumLike,
Multiplying a MolarMass by a Amount returns a value of type Mass
Source§impl<T> Mul<&Amount<T>> for &MolarVolume<T>where
T: NumLike,
Multiplying a MolarVolume by a Amount returns a value of type Volume
impl<T> Mul<&Amount<T>> for &MolarVolume<T>where
T: NumLike,
Multiplying a MolarVolume by a Amount returns a value of type Volume
Source§impl<T> Mul<&Amount<T>> for Frequency<T>where
T: NumLike,
Multiplying a Frequency by a Amount returns a value of type CatalyticActivity
impl<T> Mul<&Amount<T>> for Frequency<T>where
T: NumLike,
Multiplying a Frequency by a Amount returns a value of type CatalyticActivity
Source§impl<T> Mul<&Amount<T>> for InverseCatalyticActivity<T>where
T: NumLike,
Multiplying a InverseCatalyticActivity by a Amount returns a value of type Time
impl<T> Mul<&Amount<T>> for InverseCatalyticActivity<T>where
T: NumLike,
Multiplying a InverseCatalyticActivity by a Amount returns a value of type Time
Source§impl<T> Mul<&Amount<T>> for InverseMass<T>where
T: NumLike,
Multiplying a InverseMass by a Amount returns a value of type Molality
impl<T> Mul<&Amount<T>> for InverseMass<T>where
T: NumLike,
Multiplying a InverseMass by a Amount returns a value of type Molality
Source§impl<T> Mul<&Amount<T>> for InverseVolume<T>where
T: NumLike,
Multiplying a InverseVolume by a Amount returns a value of type Concentration
impl<T> Mul<&Amount<T>> for InverseVolume<T>where
T: NumLike,
Multiplying a InverseVolume by a Amount returns a value of type Concentration
Source§impl<T> Mul<&Amount<T>> for MolarMass<T>where
T: NumLike,
Multiplying a MolarMass by a Amount returns a value of type Mass
impl<T> Mul<&Amount<T>> for MolarMass<T>where
T: NumLike,
Multiplying a MolarMass by a Amount returns a value of type Mass
Source§impl<T> Mul<&Amount<T>> for MolarVolume<T>where
T: NumLike,
Multiplying a MolarVolume by a Amount returns a value of type Volume
impl<T> Mul<&Amount<T>> for MolarVolume<T>where
T: NumLike,
Multiplying a MolarVolume by a Amount returns a value of type Volume
Source§impl<T> Mul<&Amount<T>> for f32
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
impl<T> Mul<&Amount<T>> for f32
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
Source§impl<T> Mul<&Amount<T>> for f64
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
impl<T> Mul<&Amount<T>> for f64
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
Source§impl<T> Mul<&Amount<T>> for i16
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
impl<T> Mul<&Amount<T>> for i16
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
Source§impl<T> Mul<&Amount<T>> for i32
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
impl<T> Mul<&Amount<T>> for i32
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
Source§impl<T> Mul<&Amount<T>> for i64
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
impl<T> Mul<&Amount<T>> for i64
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
Source§impl<T> Mul<&Amount<T>> for i8
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
impl<T> Mul<&Amount<T>> for i8
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
Source§impl<T> Mul<&Amount<T>> for u16
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
impl<T> Mul<&Amount<T>> for u16
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
Source§impl<T> Mul<&Amount<T>> for u32
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
impl<T> Mul<&Amount<T>> for u32
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
Source§impl<T> Mul<&Amount<T>> for u64
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
impl<T> Mul<&Amount<T>> for u64
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
Source§impl<T> Mul<&Amount<T>> for u8
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
impl<T> Mul<&Amount<T>> for u8
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
Source§impl<T> Mul<&Frequency<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a Frequency returns a value of type CatalyticActivity
impl<T> Mul<&Frequency<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a Frequency returns a value of type CatalyticActivity
Source§impl<T> Mul<&Frequency<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a Frequency returns a value of type CatalyticActivity
impl<T> Mul<&Frequency<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a Frequency returns a value of type CatalyticActivity
Source§impl<T> Mul<&InverseCatalyticActivity<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseCatalyticActivity returns a value of type Time
impl<T> Mul<&InverseCatalyticActivity<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseCatalyticActivity returns a value of type Time
Source§impl<T> Mul<&InverseCatalyticActivity<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseCatalyticActivity returns a value of type Time
impl<T> Mul<&InverseCatalyticActivity<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseCatalyticActivity returns a value of type Time
Source§impl<T> Mul<&InverseMass<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseMass returns a value of type Molality
impl<T> Mul<&InverseMass<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseMass returns a value of type Molality
Source§impl<T> Mul<&InverseMass<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseMass returns a value of type Molality
impl<T> Mul<&InverseMass<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseMass returns a value of type Molality
Source§impl<T> Mul<&InverseVolume<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseVolume returns a value of type Concentration
impl<T> Mul<&InverseVolume<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseVolume returns a value of type Concentration
Source§type Output = Concentration<T>
type Output = Concentration<T>
* operator.Source§impl<T> Mul<&InverseVolume<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseVolume returns a value of type Concentration
impl<T> Mul<&InverseVolume<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseVolume returns a value of type Concentration
Source§type Output = Concentration<T>
type Output = Concentration<T>
* operator.Source§impl<T> Mul<&MolarMass<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a MolarMass returns a value of type Mass
impl<T> Mul<&MolarMass<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a MolarMass returns a value of type Mass
Source§impl<T> Mul<&MolarMass<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a MolarMass returns a value of type Mass
impl<T> Mul<&MolarMass<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a MolarMass returns a value of type Mass
Source§impl<T> Mul<&MolarVolume<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a MolarVolume returns a value of type Volume
impl<T> Mul<&MolarVolume<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a MolarVolume returns a value of type Volume
Source§impl<T> Mul<&MolarVolume<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a MolarVolume returns a value of type Volume
impl<T> Mul<&MolarVolume<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a MolarVolume returns a value of type Volume
Source§impl<T> Mul<&T> for &Amount<T>where
T: NumLike,
Multiplying a unit value by a scalar value returns a unit value
impl<T> Mul<&T> for &Amount<T>where
T: NumLike,
Multiplying a unit value by a scalar value returns a unit value
Source§impl<T> Mul<&T> for Amount<T>where
T: NumLike,
Multiplying a unit value by a scalar value returns a unit value
impl<T> Mul<&T> for Amount<T>where
T: NumLike,
Multiplying a unit value by a scalar value returns a unit value
Source§impl<T> Mul<Amount<T>> for &Frequency<T>where
T: NumLike,
Multiplying a Frequency by a Amount returns a value of type CatalyticActivity
impl<T> Mul<Amount<T>> for &Frequency<T>where
T: NumLike,
Multiplying a Frequency by a Amount returns a value of type CatalyticActivity
Source§impl<T> Mul<Amount<T>> for &InverseCatalyticActivity<T>where
T: NumLike,
Multiplying a InverseCatalyticActivity by a Amount returns a value of type Time
impl<T> Mul<Amount<T>> for &InverseCatalyticActivity<T>where
T: NumLike,
Multiplying a InverseCatalyticActivity by a Amount returns a value of type Time
Source§impl<T> Mul<Amount<T>> for &InverseMass<T>where
T: NumLike,
Multiplying a InverseMass by a Amount returns a value of type Molality
impl<T> Mul<Amount<T>> for &InverseMass<T>where
T: NumLike,
Multiplying a InverseMass by a Amount returns a value of type Molality
Source§impl<T> Mul<Amount<T>> for &InverseVolume<T>where
T: NumLike,
Multiplying a InverseVolume by a Amount returns a value of type Concentration
impl<T> Mul<Amount<T>> for &InverseVolume<T>where
T: NumLike,
Multiplying a InverseVolume by a Amount returns a value of type Concentration
Source§impl<T> Mul<Amount<T>> for &MolarMass<T>where
T: NumLike,
Multiplying a MolarMass by a Amount returns a value of type Mass
impl<T> Mul<Amount<T>> for &MolarMass<T>where
T: NumLike,
Multiplying a MolarMass by a Amount returns a value of type Mass
Source§impl<T> Mul<Amount<T>> for &MolarVolume<T>where
T: NumLike,
Multiplying a MolarVolume by a Amount returns a value of type Volume
impl<T> Mul<Amount<T>> for &MolarVolume<T>where
T: NumLike,
Multiplying a MolarVolume by a Amount returns a value of type Volume
Source§impl<T> Mul<Amount<T>> for Frequency<T>where
T: NumLike,
Multiplying a Frequency by a Amount returns a value of type CatalyticActivity
impl<T> Mul<Amount<T>> for Frequency<T>where
T: NumLike,
Multiplying a Frequency by a Amount returns a value of type CatalyticActivity
Source§impl<T> Mul<Amount<T>> for InverseCatalyticActivity<T>where
T: NumLike,
Multiplying a InverseCatalyticActivity by a Amount returns a value of type Time
impl<T> Mul<Amount<T>> for InverseCatalyticActivity<T>where
T: NumLike,
Multiplying a InverseCatalyticActivity by a Amount returns a value of type Time
Source§impl<T> Mul<Amount<T>> for InverseMass<T>where
T: NumLike,
Multiplying a InverseMass by a Amount returns a value of type Molality
impl<T> Mul<Amount<T>> for InverseMass<T>where
T: NumLike,
Multiplying a InverseMass by a Amount returns a value of type Molality
Source§impl<T> Mul<Amount<T>> for InverseVolume<T>where
T: NumLike,
Multiplying a InverseVolume by a Amount returns a value of type Concentration
impl<T> Mul<Amount<T>> for InverseVolume<T>where
T: NumLike,
Multiplying a InverseVolume by a Amount returns a value of type Concentration
Source§impl<T> Mul<Amount<T>> for MolarMass<T>where
T: NumLike,
Multiplying a MolarMass by a Amount returns a value of type Mass
impl<T> Mul<Amount<T>> for MolarMass<T>where
T: NumLike,
Multiplying a MolarMass by a Amount returns a value of type Mass
Source§impl<T> Mul<Amount<T>> for MolarVolume<T>where
T: NumLike,
Multiplying a MolarVolume by a Amount returns a value of type Volume
impl<T> Mul<Amount<T>> for MolarVolume<T>where
T: NumLike,
Multiplying a MolarVolume by a Amount returns a value of type Volume
Source§impl<T> Mul<Amount<T>> for f32
Multiplying a unit value by a scalar value returns a unit value
impl<T> Mul<Amount<T>> for f32
Multiplying a unit value by a scalar value returns a unit value
Source§impl<T> Mul<Amount<T>> for f64
Multiplying a unit value by a scalar value returns a unit value
impl<T> Mul<Amount<T>> for f64
Multiplying a unit value by a scalar value returns a unit value
Source§impl<T> Mul<Amount<T>> for i16
Multiplying a unit value by a scalar value returns a unit value
impl<T> Mul<Amount<T>> for i16
Multiplying a unit value by a scalar value returns a unit value
Source§impl<T> Mul<Amount<T>> for i32
Multiplying a unit value by a scalar value returns a unit value
impl<T> Mul<Amount<T>> for i32
Multiplying a unit value by a scalar value returns a unit value
Source§impl<T> Mul<Amount<T>> for i64
Multiplying a unit value by a scalar value returns a unit value
impl<T> Mul<Amount<T>> for i64
Multiplying a unit value by a scalar value returns a unit value
Source§impl<T> Mul<Amount<T>> for u16
Multiplying a unit value by a scalar value returns a unit value
impl<T> Mul<Amount<T>> for u16
Multiplying a unit value by a scalar value returns a unit value
Source§impl<T> Mul<Amount<T>> for u32
Multiplying a unit value by a scalar value returns a unit value
impl<T> Mul<Amount<T>> for u32
Multiplying a unit value by a scalar value returns a unit value
Source§impl<T> Mul<Amount<T>> for u64
Multiplying a unit value by a scalar value returns a unit value
impl<T> Mul<Amount<T>> for u64
Multiplying a unit value by a scalar value returns a unit value
Source§impl<T> Mul<Frequency<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a Frequency returns a value of type CatalyticActivity
impl<T> Mul<Frequency<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a Frequency returns a value of type CatalyticActivity
Source§impl<T> Mul<Frequency<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a Frequency returns a value of type CatalyticActivity
impl<T> Mul<Frequency<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a Frequency returns a value of type CatalyticActivity
Source§impl<T> Mul<InverseCatalyticActivity<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseCatalyticActivity returns a value of type Time
impl<T> Mul<InverseCatalyticActivity<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseCatalyticActivity returns a value of type Time
Source§impl<T> Mul<InverseCatalyticActivity<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseCatalyticActivity returns a value of type Time
impl<T> Mul<InverseCatalyticActivity<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseCatalyticActivity returns a value of type Time
Source§impl<T> Mul<InverseMass<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseMass returns a value of type Molality
impl<T> Mul<InverseMass<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseMass returns a value of type Molality
Source§impl<T> Mul<InverseMass<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseMass returns a value of type Molality
impl<T> Mul<InverseMass<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseMass returns a value of type Molality
Source§impl<T> Mul<InverseVolume<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseVolume returns a value of type Concentration
impl<T> Mul<InverseVolume<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseVolume returns a value of type Concentration
Source§type Output = Concentration<T>
type Output = Concentration<T>
* operator.Source§impl<T> Mul<InverseVolume<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseVolume returns a value of type Concentration
impl<T> Mul<InverseVolume<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a InverseVolume returns a value of type Concentration
Source§type Output = Concentration<T>
type Output = Concentration<T>
* operator.Source§impl<T> Mul<MolarMass<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a MolarMass returns a value of type Mass
impl<T> Mul<MolarMass<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a MolarMass returns a value of type Mass
Source§impl<T> Mul<MolarMass<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a MolarMass returns a value of type Mass
impl<T> Mul<MolarMass<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a MolarMass returns a value of type Mass
Source§impl<T> Mul<MolarVolume<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a MolarVolume returns a value of type Volume
impl<T> Mul<MolarVolume<T>> for &Amount<T>where
T: NumLike,
Multiplying a Amount by a MolarVolume returns a value of type Volume
Source§impl<T> Mul<MolarVolume<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a MolarVolume returns a value of type Volume
impl<T> Mul<MolarVolume<T>> for Amount<T>where
T: NumLike,
Multiplying a Amount by a MolarVolume returns a value of type Volume
Source§impl<T: NumLike> Mul<T> for &Amount<T>
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
impl<T: NumLike> Mul<T> for &Amount<T>
Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)
Source§impl<T: NumLike> Mul<T> for Amount<T>
Multiplying a unit value by a scalar value returns a unit value
impl<T: NumLike> Mul<T> for Amount<T>
Multiplying a unit value by a scalar value returns a unit value
Source§impl<T: NumLike> MulAssign<T> for Amount<T>
Multiplies this unit value by a scalar
impl<T: NumLike> MulAssign<T> for Amount<T>
Multiplies this unit value by a scalar
Source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
*= operation. Read moreSource§impl<T: NumLike> Neg for &Amount<T>
Flips the sign of this unit value (automatically clones the referenced data for convenient ergonomics)
impl<T: NumLike> Neg for &Amount<T>
Flips the sign of this unit value (automatically clones the referenced data for convenient ergonomics)
Source§impl<T> Ord for Amount<T>
This struct implements the Ord trait if it’s member data type also has the Ord trait
impl<T> Ord for Amount<T>
This struct implements the Ord trait if it’s member data type also has the Ord trait
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<T> PartialEq for Amount<T>
This struct implements the PartialEq trait if it’s member data type also has the PartialEq trait
impl<T> PartialEq for Amount<T>
This struct implements the PartialEq trait if it’s member data type also has the PartialEq trait
Source§impl<T> PartialOrd for Amount<T>where
T: NumLike + PartialOrd,
This struct implements the PartialOrd trait if it’s member data type also has the PartialOrd trait
impl<T> PartialOrd for Amount<T>where
T: NumLike + PartialOrd,
This struct implements the PartialOrd trait if it’s member data type also has the PartialOrd trait
Source§impl<T: NumLike> Sub for &Amount<T>
Subtracting two unit values of the same type returns a new unit value of the same type (automatically clones the referenced data for convenient ergonomics)
impl<T: NumLike> Sub for &Amount<T>
Subtracting two unit values of the same type returns a new unit value of the same type (automatically clones the referenced data for convenient ergonomics)
Source§impl<T: NumLike> Sub for Amount<T>
Subtracting two unit values of the same type returns a new unit value of the same type
impl<T: NumLike> Sub for Amount<T>
Subtracting two unit values of the same type returns a new unit value of the same type
Source§impl<T: NumLike> SubAssign for Amount<T>
Subtracts the given unit value from this unit value
impl<T: NumLike> SubAssign for Amount<T>
Subtracts the given unit value from this unit value
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-= operation. Read moreimpl<T> Copy for Amount<T>
This struct implements the Copy marker trait if it’s member data type also has the Copy trait
impl<T> Eq for Amount<T>
This struct implements the core::cmp::Eq trait if it’s member data type also has the core::cmp::Eq trait