Skip to main content

Mass

Struct Mass 

Source
pub struct Mass<T: NumLike> {
    pub kg: T,
}
Expand description

The mass unit type, defined as kilograms in SI units

Fields§

§kg: T

The value of this Mass in kilograms

Implementations§

Source§

impl<T> Mass<T>
where T: NumLike,

Source

pub fn unit_name() -> &'static str

Returns the standard unit name of mass: “kilograms”

Source

pub fn unit_symbol() -> &'static str

Returns the abbreviated name or symbol of mass: “kg” for kilograms

Source

pub fn from_kg(kg: T) -> Self

Returns a new mass value from the given number of kilograms

§Arguments
  • kg - Any number-like type, representing a quantity of kilograms
Source

pub fn to_kg(&self) -> T

Returns a copy of this mass value in kilograms

Source

pub fn from_kilograms(kilograms: T) -> Self

Returns a new mass value from the given number of kilograms

§Arguments
  • kilograms - Any number-like type, representing a quantity of kilograms
Source

pub fn to_kilograms(&self) -> T

Returns a copy of this mass value in kilograms

Source§

impl<T> Mass<T>
where T: NumLike + From<f64>,

Source

pub fn to_g(&self) -> T

Returns a copy of this mass value in grams

Note: This method is not available for f32 and other number types lacking the From<f64> trait

Source

pub fn from_g(g: T) -> Self

Returns a new mass value from the given number of grams

Note: This method is not available for f32 and other number types lacking the From<f64> trait

§Arguments
  • g - Any number-like type, representing a quantity of grams
Source

pub fn to_mg(&self) -> T

Returns a copy of this mass value in milligrams

Note: This method is not available for f32 and other number types lacking the From<f64> trait

Source

pub fn from_mg(mg: T) -> Self

Returns a new mass value from the given number of milligrams

Note: This method is not available for f32 and other number types lacking the From<f64> trait

§Arguments
  • mg - Any number-like type, representing a quantity of milligrams
Source

pub fn to_ug(&self) -> T

Returns a copy of this mass value in micrograms

Note: This method is not available for f32 and other number types lacking the From<f64> trait

Source

pub fn from_ug(ug: T) -> Self

Returns a new mass value from the given number of micrograms

Note: This method is not available for f32 and other number types lacking the From<f64> trait

§Arguments
  • ug - Any number-like type, representing a quantity of micrograms
Source

pub fn to_ng(&self) -> T

Returns a copy of this mass value in nanograms

Note: This method is not available for f32 and other number types lacking the From<f64> trait

Source

pub fn from_ng(ng: T) -> Self

Returns a new mass value from the given number of nanograms

Note: This method is not available for f32 and other number types lacking the From<f64> trait

§Arguments
  • ng - Any number-like type, representing a quantity of nanograms
Source

pub fn to_pg(&self) -> T

Returns a copy of this mass value in picograms

Note: This method is not available for f32 and other number types lacking the From<f64> trait

Source

pub fn from_pg(pg: T) -> Self

Returns a new mass value from the given number of picograms

Note: This method is not available for f32 and other number types lacking the From<f64> trait

§Arguments
  • pg - Any number-like type, representing a quantity of picograms
Source

pub fn to_tons(&self) -> T

Returns a copy of this mass value in tons

Note: This method is not available for f32 and other number types lacking the From<f64> trait

Source

pub fn from_tons(tons: T) -> Self

Returns a new mass value from the given number of tons

Note: This method is not available for f32 and other number types lacking the From<f64> trait

§Arguments
  • tons - Any number-like type, representing a quantity of tons
Source

pub fn to_earth_mass(&self) -> T

Returns a copy of this mass value in earth masses

Note: This method is not available for f32 and other number types lacking the From<f64> trait

Source

pub fn from_earth_mass(earth_mass: T) -> Self

Returns a new mass value from the given number of earth masses

Note: This method is not available for f32 and other number types lacking the From<f64> trait

§Arguments
  • earth_mass - Any number-like type, representing a quantity of earth masses
Source

pub fn to_jupiter_mass(&self) -> T

Returns a copy of this mass value in jupiter masses

Note: This method is not available for f32 and other number types lacking the From<f64> trait

Source

pub fn from_jupiter_mass(jupiter_mass: T) -> Self

Returns a new mass value from the given number of jupiter masses

Note: This method is not available for f32 and other number types lacking the From<f64> trait

§Arguments
  • jupiter_mass - Any number-like type, representing a quantity of jupiter masses
Source

pub fn to_solar_mass(&self) -> T

Returns a copy of this mass value in solar masses

Note: This method is not available for f32 and other number types lacking the From<f64> trait

Source

pub fn from_solar_mass(solar_mass: T) -> Self

Returns a new mass value from the given number of solar masses

Note: This method is not available for f32 and other number types lacking the From<f64> trait

§Arguments
  • solar_mass - Any number-like type, representing a quantity of solar masses

Trait Implementations§

Source§

impl<T: NumLike> Add for &Mass<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§

type Output = Mass<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: NumLike> Add for Mass<T>

Adding two unit values of the same type returns a new unit value of the same type

Source§

type Output = Mass<T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<T: NumLike> AddAssign for Mass<T>

Adds the given unit value to this unit value

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl<T: Clone + NumLike> Clone for Mass<T>

Source§

fn clone(&self) -> Mass<T>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<T: Debug + NumLike> Debug for Mass<T>

Source§

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

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

impl<T> Display for Mass<T>
where T: NumLike,

Source§

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

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

impl<T> Div<&Amount<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a Amount returns a value of type MolarMass

Source§

type Output = MolarMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Amount<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Amount<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a Amount returns a value of type MolarMass

Source§

type Output = MolarMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Amount<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Area<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a Area returns a value of type AreaDensity

Source§

type Output = AreaDensity<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Area<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Area<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a Area returns a value of type AreaDensity

Source§

type Output = AreaDensity<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Area<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&AreaDensity<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a AreaDensity returns a value of type Area

Source§

type Output = Area<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &AreaDensity<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&AreaDensity<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a AreaDensity returns a value of type Area

Source§

type Output = Area<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &AreaDensity<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Density<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a Density returns a value of type Volume

Source§

type Output = Volume<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Density<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Density<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a Density returns a value of type Volume

Source§

type Output = Volume<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Density<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Force<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a Force returns a value of type InverseAcceleration

Source§

type Output = InverseAcceleration<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Force<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Force<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a Force returns a value of type InverseAcceleration

Source§

type Output = InverseAcceleration<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Force<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&InverseAbsorbedDose<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a InverseAbsorbedDose returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &InverseAbsorbedDose<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&InverseAbsorbedDose<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a InverseAbsorbedDose returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &InverseAbsorbedDose<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&InverseAcceleration<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a InverseAcceleration returns a value of type Force

Source§

type Output = Force<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &InverseAcceleration<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&InverseAcceleration<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a InverseAcceleration returns a value of type Force

Source§

type Output = Force<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &InverseAcceleration<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&InverseDoseEquivalent<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a InverseDoseEquivalent returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &InverseDoseEquivalent<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&InverseDoseEquivalent<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a InverseDoseEquivalent returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &InverseDoseEquivalent<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for &Amount<T>
where T: NumLike,

Dividing a Amount by a Mass returns a value of type Molality

Source§

type Output = Molality<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for &Area<T>
where T: NumLike,

Dividing a Area by a Mass returns a value of type AreaPerMass

Source§

type Output = AreaPerMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for &AreaDensity<T>
where T: NumLike,

Dividing a AreaDensity by a Mass returns a value of type InverseArea

Source§

type Output = InverseArea<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for &Density<T>
where T: NumLike,

Dividing a Density by a Mass returns a value of type InverseVolume

Source§

type Output = InverseVolume<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for &Force<T>
where T: NumLike,

Dividing a Force by a Mass returns a value of type Acceleration

Source§

type Output = Acceleration<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for &InverseAbsorbedDose<T>
where T: NumLike,

Dividing a InverseAbsorbedDose by a Mass returns a value of type InverseEnergy

Source§

type Output = InverseEnergy<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for &InverseAcceleration<T>
where T: NumLike,

Dividing a InverseAcceleration by a Mass returns a value of type InverseForce

Source§

type Output = InverseForce<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for &InverseDoseEquivalent<T>
where T: NumLike,

Dividing a InverseDoseEquivalent by a Mass returns a value of type InverseEnergy

Source§

type Output = InverseEnergy<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for &MolarMass<T>
where T: NumLike,

Dividing a MolarMass by a Mass returns a value of type InverseAmount

Source§

type Output = InverseAmount<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for &MomentOfInertia<T>
where T: NumLike,

Dividing a MomentOfInertia by a Mass returns a value of type Area

Source§

type Output = Area<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for &Momentum<T>
where T: NumLike,

Dividing a Momentum by a Mass returns a value of type Velocity

Source§

type Output = Velocity<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for &TimePerDistance<T>
where T: NumLike,

Dividing a TimePerDistance by a Mass returns a value of type InverseMomentum

Source§

type Output = InverseMomentum<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for &Volume<T>
where T: NumLike,

Dividing a Volume by a Mass returns a value of type VolumePerMass

Source§

type Output = VolumePerMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for &f32
where T: NumLike + From<f32>,

Dividing a scalar value by a Mass unit value returns a value of type InverseMass

Source§

type Output = InverseMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for &f64
where T: NumLike + From<f64>,

Dividing a scalar value by a Mass unit value returns a value of type InverseMass

Source§

type Output = InverseMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for &i32
where T: NumLike + From<i32>,

Dividing a scalar value by a Mass unit value returns a value of type InverseMass

Source§

type Output = InverseMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for &i64
where T: NumLike + From<i64>,

Dividing a scalar value by a Mass unit value returns a value of type InverseMass

Source§

type Output = InverseMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for Amount<T>
where T: NumLike,

Dividing a Amount by a Mass returns a value of type Molality

Source§

type Output = Molality<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for Area<T>
where T: NumLike,

Dividing a Area by a Mass returns a value of type AreaPerMass

Source§

type Output = AreaPerMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for AreaDensity<T>
where T: NumLike,

Dividing a AreaDensity by a Mass returns a value of type InverseArea

Source§

type Output = InverseArea<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for Density<T>
where T: NumLike,

Dividing a Density by a Mass returns a value of type InverseVolume

Source§

type Output = InverseVolume<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for Force<T>
where T: NumLike,

Dividing a Force by a Mass returns a value of type Acceleration

Source§

type Output = Acceleration<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for InverseAbsorbedDose<T>
where T: NumLike,

Dividing a InverseAbsorbedDose by a Mass returns a value of type InverseEnergy

Source§

type Output = InverseEnergy<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for InverseAcceleration<T>
where T: NumLike,

Dividing a InverseAcceleration by a Mass returns a value of type InverseForce

Source§

type Output = InverseForce<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for InverseDoseEquivalent<T>
where T: NumLike,

Dividing a InverseDoseEquivalent by a Mass returns a value of type InverseEnergy

Source§

type Output = InverseEnergy<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for MolarMass<T>
where T: NumLike,

Dividing a MolarMass by a Mass returns a value of type InverseAmount

Source§

type Output = InverseAmount<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for MomentOfInertia<T>
where T: NumLike,

Dividing a MomentOfInertia by a Mass returns a value of type Area

Source§

type Output = Area<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for Momentum<T>
where T: NumLike,

Dividing a Momentum by a Mass returns a value of type Velocity

Source§

type Output = Velocity<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for TimePerDistance<T>
where T: NumLike,

Dividing a TimePerDistance by a Mass returns a value of type InverseMomentum

Source§

type Output = InverseMomentum<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for Volume<T>
where T: NumLike,

Dividing a Volume by a Mass returns a value of type VolumePerMass

Source§

type Output = VolumePerMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for f32
where T: NumLike + From<f32>,

Dividing a scalar value by a Mass unit value returns a value of type InverseMass

Source§

type Output = InverseMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for f64
where T: NumLike + From<f64>,

Dividing a scalar value by a Mass unit value returns a value of type InverseMass

Source§

type Output = InverseMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for i32
where T: NumLike + From<i32>,

Dividing a scalar value by a Mass unit value returns a value of type InverseMass

Source§

type Output = InverseMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Mass<T>> for i64
where T: NumLike + From<i64>,

Dividing a scalar value by a Mass unit value returns a value of type InverseMass

Source§

type Output = InverseMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&MolarMass<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a MolarMass returns a value of type Amount

Source§

type Output = Amount<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &MolarMass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&MolarMass<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a MolarMass returns a value of type Amount

Source§

type Output = Amount<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &MolarMass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&MomentOfInertia<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a MomentOfInertia returns a value of type InverseArea

Source§

type Output = InverseArea<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &MomentOfInertia<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&MomentOfInertia<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a MomentOfInertia returns a value of type InverseArea

Source§

type Output = InverseArea<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &MomentOfInertia<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Momentum<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a Momentum returns a value of type TimePerDistance

Source§

type Output = TimePerDistance<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Momentum<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Momentum<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a Momentum returns a value of type TimePerDistance

Source§

type Output = TimePerDistance<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Momentum<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&T> for &Mass<T>
where T: NumLike,

Dividing a unit value by a scalar value returns a unit value

Source§

type Output = Mass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &T) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&T> for Mass<T>
where T: NumLike,

Dividing a unit value by a scalar value returns a unit value

Source§

type Output = Mass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &T) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&TimePerDistance<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a TimePerDistance returns a value of type Momentum

Source§

type Output = Momentum<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &TimePerDistance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&TimePerDistance<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a TimePerDistance returns a value of type Momentum

Source§

type Output = Momentum<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &TimePerDistance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Volume<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a Volume returns a value of type Density

Source§

type Output = Density<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Volume<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<&Volume<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a Volume returns a value of type Density

Source§

type Output = Density<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &Volume<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Amount<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a Amount returns a value of type MolarMass

Source§

type Output = MolarMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Amount<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Amount<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a Amount returns a value of type MolarMass

Source§

type Output = MolarMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Amount<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Area<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a Area returns a value of type AreaDensity

Source§

type Output = AreaDensity<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Area<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Area<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a Area returns a value of type AreaDensity

Source§

type Output = AreaDensity<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Area<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<AreaDensity<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a AreaDensity returns a value of type Area

Source§

type Output = Area<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: AreaDensity<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<AreaDensity<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a AreaDensity returns a value of type Area

Source§

type Output = Area<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: AreaDensity<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Density<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a Density returns a value of type Volume

Source§

type Output = Volume<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Density<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Density<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a Density returns a value of type Volume

Source§

type Output = Volume<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Density<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Force<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a Force returns a value of type InverseAcceleration

Source§

type Output = InverseAcceleration<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Force<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Force<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a Force returns a value of type InverseAcceleration

Source§

type Output = InverseAcceleration<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Force<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<InverseAbsorbedDose<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a InverseAbsorbedDose returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: InverseAbsorbedDose<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<InverseAbsorbedDose<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a InverseAbsorbedDose returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: InverseAbsorbedDose<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<InverseAcceleration<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a InverseAcceleration returns a value of type Force

Source§

type Output = Force<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: InverseAcceleration<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<InverseAcceleration<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a InverseAcceleration returns a value of type Force

Source§

type Output = Force<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: InverseAcceleration<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<InverseDoseEquivalent<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a InverseDoseEquivalent returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: InverseDoseEquivalent<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<InverseDoseEquivalent<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a InverseDoseEquivalent returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: InverseDoseEquivalent<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for &Amount<T>
where T: NumLike,

Dividing a Amount by a Mass returns a value of type Molality

Source§

type Output = Molality<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for &Area<T>
where T: NumLike,

Dividing a Area by a Mass returns a value of type AreaPerMass

Source§

type Output = AreaPerMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for &AreaDensity<T>
where T: NumLike,

Dividing a AreaDensity by a Mass returns a value of type InverseArea

Source§

type Output = InverseArea<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for &Density<T>
where T: NumLike,

Dividing a Density by a Mass returns a value of type InverseVolume

Source§

type Output = InverseVolume<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for &Force<T>
where T: NumLike,

Dividing a Force by a Mass returns a value of type Acceleration

Source§

type Output = Acceleration<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for &InverseAbsorbedDose<T>
where T: NumLike,

Dividing a InverseAbsorbedDose by a Mass returns a value of type InverseEnergy

Source§

type Output = InverseEnergy<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for &InverseAcceleration<T>
where T: NumLike,

Dividing a InverseAcceleration by a Mass returns a value of type InverseForce

Source§

type Output = InverseForce<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for &InverseDoseEquivalent<T>
where T: NumLike,

Dividing a InverseDoseEquivalent by a Mass returns a value of type InverseEnergy

Source§

type Output = InverseEnergy<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for &MolarMass<T>
where T: NumLike,

Dividing a MolarMass by a Mass returns a value of type InverseAmount

Source§

type Output = InverseAmount<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for &MomentOfInertia<T>
where T: NumLike,

Dividing a MomentOfInertia by a Mass returns a value of type Area

Source§

type Output = Area<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for &Momentum<T>
where T: NumLike,

Dividing a Momentum by a Mass returns a value of type Velocity

Source§

type Output = Velocity<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for &TimePerDistance<T>
where T: NumLike,

Dividing a TimePerDistance by a Mass returns a value of type InverseMomentum

Source§

type Output = InverseMomentum<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for &Volume<T>
where T: NumLike,

Dividing a Volume by a Mass returns a value of type VolumePerMass

Source§

type Output = VolumePerMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for &f32
where T: NumLike + From<f32>,

Dividing a scalar value by a Mass unit value returns a value of type InverseMass

Source§

type Output = InverseMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for &f64
where T: NumLike + From<f64>,

Dividing a scalar value by a Mass unit value returns a value of type InverseMass

Source§

type Output = InverseMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for &i32
where T: NumLike + From<i32>,

Dividing a scalar value by a Mass unit value returns a value of type InverseMass

Source§

type Output = InverseMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for &i64
where T: NumLike + From<i64>,

Dividing a scalar value by a Mass unit value returns a value of type InverseMass

Source§

type Output = InverseMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for Amount<T>
where T: NumLike,

Dividing a Amount by a Mass returns a value of type Molality

Source§

type Output = Molality<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for Area<T>
where T: NumLike,

Dividing a Area by a Mass returns a value of type AreaPerMass

Source§

type Output = AreaPerMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for AreaDensity<T>
where T: NumLike,

Dividing a AreaDensity by a Mass returns a value of type InverseArea

Source§

type Output = InverseArea<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for Density<T>
where T: NumLike,

Dividing a Density by a Mass returns a value of type InverseVolume

Source§

type Output = InverseVolume<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for Force<T>
where T: NumLike,

Dividing a Force by a Mass returns a value of type Acceleration

Source§

type Output = Acceleration<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for InverseAbsorbedDose<T>
where T: NumLike,

Dividing a InverseAbsorbedDose by a Mass returns a value of type InverseEnergy

Source§

type Output = InverseEnergy<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for InverseAcceleration<T>
where T: NumLike,

Dividing a InverseAcceleration by a Mass returns a value of type InverseForce

Source§

type Output = InverseForce<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for InverseDoseEquivalent<T>
where T: NumLike,

Dividing a InverseDoseEquivalent by a Mass returns a value of type InverseEnergy

Source§

type Output = InverseEnergy<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for MolarMass<T>
where T: NumLike,

Dividing a MolarMass by a Mass returns a value of type InverseAmount

Source§

type Output = InverseAmount<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for MomentOfInertia<T>
where T: NumLike,

Dividing a MomentOfInertia by a Mass returns a value of type Area

Source§

type Output = Area<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for Momentum<T>
where T: NumLike,

Dividing a Momentum by a Mass returns a value of type Velocity

Source§

type Output = Velocity<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for TimePerDistance<T>
where T: NumLike,

Dividing a TimePerDistance by a Mass returns a value of type InverseMomentum

Source§

type Output = InverseMomentum<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for Volume<T>
where T: NumLike,

Dividing a Volume by a Mass returns a value of type VolumePerMass

Source§

type Output = VolumePerMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for f32
where T: NumLike + From<f32>,

Dividing a scalar value by a Mass unit value returns a value of type InverseMass

Source§

type Output = InverseMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for f64
where T: NumLike + From<f64>,

Dividing a scalar value by a Mass unit value returns a value of type InverseMass

Source§

type Output = InverseMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for i32
where T: NumLike + From<i32>,

Dividing a scalar value by a Mass unit value returns a value of type InverseMass

Source§

type Output = InverseMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Mass<T>> for i64
where T: NumLike + From<i64>,

Dividing a scalar value by a Mass unit value returns a value of type InverseMass

Source§

type Output = InverseMass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Mass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<MolarMass<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a MolarMass returns a value of type Amount

Source§

type Output = Amount<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: MolarMass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<MolarMass<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a MolarMass returns a value of type Amount

Source§

type Output = Amount<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: MolarMass<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<MomentOfInertia<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a MomentOfInertia returns a value of type InverseArea

Source§

type Output = InverseArea<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: MomentOfInertia<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<MomentOfInertia<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a MomentOfInertia returns a value of type InverseArea

Source§

type Output = InverseArea<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: MomentOfInertia<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Momentum<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a Momentum returns a value of type TimePerDistance

Source§

type Output = TimePerDistance<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Momentum<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Momentum<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a Momentum returns a value of type TimePerDistance

Source§

type Output = TimePerDistance<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Momentum<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: NumLike> Div<T> for &Mass<T>

Dividing a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Mass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: T) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: NumLike> Div<T> for Mass<T>

Dividing a unit value by a scalar value returns a unit value

Source§

type Output = Mass<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: T) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<TimePerDistance<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a TimePerDistance returns a value of type Momentum

Source§

type Output = Momentum<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: TimePerDistance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<TimePerDistance<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a TimePerDistance returns a value of type Momentum

Source§

type Output = Momentum<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: TimePerDistance<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Volume<T>> for &Mass<T>
where T: NumLike,

Dividing a Mass by a Volume returns a value of type Density

Source§

type Output = Density<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Volume<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T> Div<Volume<T>> for Mass<T>
where T: NumLike,

Dividing a Mass by a Volume returns a value of type Density

Source§

type Output = Density<T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Volume<T>) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: NumLike> Div for &Mass<T>

Dividing a unit value by another of the same type returns a scalar value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = T

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: NumLike> Div for Mass<T>

Dividing a unit value by another of the same type returns a scalar value

Source§

type Output = T

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl<T: NumLike> DivAssign<T> for Mass<T>

Divides this unit value by a scalar

Source§

fn div_assign(&mut self, rhs: T)

Performs the /= operation. Read more
Source§

impl<T> Hash for Mass<T>
where T: NumLike + Hash,

This struct implements the Hash trait if it’s member data type also has the Hash trait

Source§

fn hash<H: Hasher>(&self, hasher: &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<T> Mul<&AbsorbedDose<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a AbsorbedDose returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &AbsorbedDose<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&AbsorbedDose<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a AbsorbedDose returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &AbsorbedDose<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Acceleration<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a Acceleration returns a value of type Force

Source§

type Output = Force<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Acceleration<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Acceleration<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a Acceleration returns a value of type Force

Source§

type Output = Force<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Acceleration<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&AreaPerMass<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a AreaPerMass returns a value of type Area

Source§

type Output = Area<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &AreaPerMass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&AreaPerMass<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a AreaPerMass returns a value of type Area

Source§

type Output = Area<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &AreaPerMass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&DoseEquivalent<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a DoseEquivalent returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &DoseEquivalent<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&DoseEquivalent<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a DoseEquivalent returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &DoseEquivalent<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&InverseAmount<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseAmount returns a value of type MolarMass

Source§

type Output = MolarMass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &InverseAmount<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&InverseAmount<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseAmount returns a value of type MolarMass

Source§

type Output = MolarMass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &InverseAmount<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&InverseArea<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseArea returns a value of type AreaDensity

Source§

type Output = AreaDensity<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &InverseArea<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&InverseArea<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseArea returns a value of type AreaDensity

Source§

type Output = AreaDensity<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &InverseArea<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&InverseForce<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseForce returns a value of type InverseAcceleration

Source§

type Output = InverseAcceleration<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &InverseForce<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&InverseForce<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseForce returns a value of type InverseAcceleration

Source§

type Output = InverseAcceleration<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &InverseForce<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&InverseMomentOfInertia<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseMomentOfInertia returns a value of type InverseArea

Source§

type Output = InverseArea<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &InverseMomentOfInertia<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&InverseMomentOfInertia<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseMomentOfInertia returns a value of type InverseArea

Source§

type Output = InverseArea<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &InverseMomentOfInertia<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&InverseMomentum<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseMomentum returns a value of type TimePerDistance

Source§

type Output = TimePerDistance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &InverseMomentum<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&InverseMomentum<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseMomentum returns a value of type TimePerDistance

Source§

type Output = TimePerDistance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &InverseMomentum<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&InverseVolume<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseVolume returns a value of type Density

Source§

type Output = Density<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &InverseVolume<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&InverseVolume<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseVolume returns a value of type Density

Source§

type Output = Density<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &InverseVolume<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for &AbsorbedDose<T>
where T: NumLike,

Multiplying a AbsorbedDose by a Mass returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for &Acceleration<T>
where T: NumLike,

Multiplying a Acceleration by a Mass returns a value of type Force

Source§

type Output = Force<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for &AreaPerMass<T>
where T: NumLike,

Multiplying a AreaPerMass by a Mass returns a value of type Area

Source§

type Output = Area<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for &DoseEquivalent<T>
where T: NumLike,

Multiplying a DoseEquivalent by a Mass returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for &InverseAmount<T>
where T: NumLike,

Multiplying a InverseAmount by a Mass returns a value of type MolarMass

Source§

type Output = MolarMass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for &InverseArea<T>
where T: NumLike,

Multiplying a InverseArea by a Mass returns a value of type AreaDensity

Source§

type Output = AreaDensity<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for &InverseForce<T>
where T: NumLike,

Multiplying a InverseForce by a Mass returns a value of type InverseAcceleration

Source§

type Output = InverseAcceleration<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for &InverseMomentOfInertia<T>
where T: NumLike,

Multiplying a InverseMomentOfInertia by a Mass returns a value of type InverseArea

Source§

type Output = InverseArea<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for &InverseMomentum<T>
where T: NumLike,

Multiplying a InverseMomentum by a Mass returns a value of type TimePerDistance

Source§

type Output = TimePerDistance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for &InverseVolume<T>
where T: NumLike,

Multiplying a InverseVolume by a Mass returns a value of type Density

Source§

type Output = Density<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for &Molality<T>
where T: NumLike,

Multiplying a Molality by a Mass returns a value of type Amount

Source§

type Output = Amount<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for &Velocity<T>
where T: NumLike,

Multiplying a Velocity by a Mass returns a value of type Momentum

Source§

type Output = Momentum<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for &VolumePerMass<T>
where T: NumLike,

Multiplying a VolumePerMass by a Mass returns a value of type Volume

Source§

type Output = Volume<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for AbsorbedDose<T>
where T: NumLike,

Multiplying a AbsorbedDose by a Mass returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for Acceleration<T>
where T: NumLike,

Multiplying a Acceleration by a Mass returns a value of type Force

Source§

type Output = Force<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for AreaPerMass<T>
where T: NumLike,

Multiplying a AreaPerMass by a Mass returns a value of type Area

Source§

type Output = Area<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for DoseEquivalent<T>
where T: NumLike,

Multiplying a DoseEquivalent by a Mass returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for InverseAmount<T>
where T: NumLike,

Multiplying a InverseAmount by a Mass returns a value of type MolarMass

Source§

type Output = MolarMass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for InverseArea<T>
where T: NumLike,

Multiplying a InverseArea by a Mass returns a value of type AreaDensity

Source§

type Output = AreaDensity<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for InverseForce<T>
where T: NumLike,

Multiplying a InverseForce by a Mass returns a value of type InverseAcceleration

Source§

type Output = InverseAcceleration<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for InverseMomentOfInertia<T>
where T: NumLike,

Multiplying a InverseMomentOfInertia by a Mass returns a value of type InverseArea

Source§

type Output = InverseArea<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for InverseMomentum<T>
where T: NumLike,

Multiplying a InverseMomentum by a Mass returns a value of type TimePerDistance

Source§

type Output = TimePerDistance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for InverseVolume<T>
where T: NumLike,

Multiplying a InverseVolume by a Mass returns a value of type Density

Source§

type Output = Density<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for Molality<T>
where T: NumLike,

Multiplying a Molality by a Mass returns a value of type Amount

Source§

type Output = Amount<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for Velocity<T>
where T: NumLike,

Multiplying a Velocity by a Mass returns a value of type Momentum

Source§

type Output = Momentum<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for VolumePerMass<T>
where T: NumLike,

Multiplying a VolumePerMass by a Mass returns a value of type Volume

Source§

type Output = Volume<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for f32
where T: NumLike + From<f32>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for f64
where T: NumLike + From<f64>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for i16
where T: NumLike + From<i16>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for i32
where T: NumLike + From<i32>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for i64
where T: NumLike + From<i64>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for i8
where T: NumLike + From<i8>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for u16
where T: NumLike + From<u16>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for u32
where T: NumLike + From<u32>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for u64
where T: NumLike + From<u64>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Mass<T>> for u8
where T: NumLike + From<u8>,

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Molality<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a Molality returns a value of type Amount

Source§

type Output = Amount<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Molality<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Molality<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a Molality returns a value of type Amount

Source§

type Output = Amount<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Molality<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&T> for &Mass<T>
where T: NumLike,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &T) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&T> for Mass<T>
where T: NumLike,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &T) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Velocity<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a Velocity returns a value of type Momentum

Source§

type Output = Momentum<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Velocity<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&Velocity<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a Velocity returns a value of type Momentum

Source§

type Output = Momentum<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &Velocity<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&VolumePerMass<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a VolumePerMass returns a value of type Volume

Source§

type Output = Volume<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &VolumePerMass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<&VolumePerMass<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a VolumePerMass returns a value of type Volume

Source§

type Output = Volume<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &VolumePerMass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<AbsorbedDose<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a AbsorbedDose returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: AbsorbedDose<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<AbsorbedDose<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a AbsorbedDose returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: AbsorbedDose<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Acceleration<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a Acceleration returns a value of type Force

Source§

type Output = Force<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Acceleration<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Acceleration<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a Acceleration returns a value of type Force

Source§

type Output = Force<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Acceleration<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<AreaPerMass<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a AreaPerMass returns a value of type Area

Source§

type Output = Area<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: AreaPerMass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<AreaPerMass<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a AreaPerMass returns a value of type Area

Source§

type Output = Area<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: AreaPerMass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<DoseEquivalent<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a DoseEquivalent returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: DoseEquivalent<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<DoseEquivalent<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a DoseEquivalent returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: DoseEquivalent<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<InverseAmount<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseAmount returns a value of type MolarMass

Source§

type Output = MolarMass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: InverseAmount<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<InverseAmount<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseAmount returns a value of type MolarMass

Source§

type Output = MolarMass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: InverseAmount<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<InverseArea<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseArea returns a value of type AreaDensity

Source§

type Output = AreaDensity<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: InverseArea<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<InverseArea<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseArea returns a value of type AreaDensity

Source§

type Output = AreaDensity<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: InverseArea<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<InverseForce<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseForce returns a value of type InverseAcceleration

Source§

type Output = InverseAcceleration<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: InverseForce<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<InverseForce<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseForce returns a value of type InverseAcceleration

Source§

type Output = InverseAcceleration<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: InverseForce<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<InverseMomentOfInertia<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseMomentOfInertia returns a value of type InverseArea

Source§

type Output = InverseArea<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: InverseMomentOfInertia<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<InverseMomentOfInertia<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseMomentOfInertia returns a value of type InverseArea

Source§

type Output = InverseArea<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: InverseMomentOfInertia<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<InverseMomentum<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseMomentum returns a value of type TimePerDistance

Source§

type Output = TimePerDistance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: InverseMomentum<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<InverseMomentum<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseMomentum returns a value of type TimePerDistance

Source§

type Output = TimePerDistance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: InverseMomentum<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<InverseVolume<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseVolume returns a value of type Density

Source§

type Output = Density<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: InverseVolume<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<InverseVolume<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a InverseVolume returns a value of type Density

Source§

type Output = Density<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: InverseVolume<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for &AbsorbedDose<T>
where T: NumLike,

Multiplying a AbsorbedDose by a Mass returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for &Acceleration<T>
where T: NumLike,

Multiplying a Acceleration by a Mass returns a value of type Force

Source§

type Output = Force<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for &AreaPerMass<T>
where T: NumLike,

Multiplying a AreaPerMass by a Mass returns a value of type Area

Source§

type Output = Area<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for &DoseEquivalent<T>
where T: NumLike,

Multiplying a DoseEquivalent by a Mass returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for &InverseAmount<T>
where T: NumLike,

Multiplying a InverseAmount by a Mass returns a value of type MolarMass

Source§

type Output = MolarMass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for &InverseArea<T>
where T: NumLike,

Multiplying a InverseArea by a Mass returns a value of type AreaDensity

Source§

type Output = AreaDensity<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for &InverseForce<T>
where T: NumLike,

Multiplying a InverseForce by a Mass returns a value of type InverseAcceleration

Source§

type Output = InverseAcceleration<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for &InverseMomentOfInertia<T>
where T: NumLike,

Multiplying a InverseMomentOfInertia by a Mass returns a value of type InverseArea

Source§

type Output = InverseArea<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for &InverseMomentum<T>
where T: NumLike,

Multiplying a InverseMomentum by a Mass returns a value of type TimePerDistance

Source§

type Output = TimePerDistance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for &InverseVolume<T>
where T: NumLike,

Multiplying a InverseVolume by a Mass returns a value of type Density

Source§

type Output = Density<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for &Molality<T>
where T: NumLike,

Multiplying a Molality by a Mass returns a value of type Amount

Source§

type Output = Amount<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for &Velocity<T>
where T: NumLike,

Multiplying a Velocity by a Mass returns a value of type Momentum

Source§

type Output = Momentum<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for &VolumePerMass<T>
where T: NumLike,

Multiplying a VolumePerMass by a Mass returns a value of type Volume

Source§

type Output = Volume<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for AbsorbedDose<T>
where T: NumLike,

Multiplying a AbsorbedDose by a Mass returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for Acceleration<T>
where T: NumLike,

Multiplying a Acceleration by a Mass returns a value of type Force

Source§

type Output = Force<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for AreaPerMass<T>
where T: NumLike,

Multiplying a AreaPerMass by a Mass returns a value of type Area

Source§

type Output = Area<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for DoseEquivalent<T>
where T: NumLike,

Multiplying a DoseEquivalent by a Mass returns a value of type Energy

Source§

type Output = Energy<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for InverseAmount<T>
where T: NumLike,

Multiplying a InverseAmount by a Mass returns a value of type MolarMass

Source§

type Output = MolarMass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for InverseArea<T>
where T: NumLike,

Multiplying a InverseArea by a Mass returns a value of type AreaDensity

Source§

type Output = AreaDensity<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for InverseForce<T>
where T: NumLike,

Multiplying a InverseForce by a Mass returns a value of type InverseAcceleration

Source§

type Output = InverseAcceleration<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for InverseMomentOfInertia<T>
where T: NumLike,

Multiplying a InverseMomentOfInertia by a Mass returns a value of type InverseArea

Source§

type Output = InverseArea<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for InverseMomentum<T>
where T: NumLike,

Multiplying a InverseMomentum by a Mass returns a value of type TimePerDistance

Source§

type Output = TimePerDistance<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for InverseVolume<T>
where T: NumLike,

Multiplying a InverseVolume by a Mass returns a value of type Density

Source§

type Output = Density<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for Molality<T>
where T: NumLike,

Multiplying a Molality by a Mass returns a value of type Amount

Source§

type Output = Amount<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for Velocity<T>
where T: NumLike,

Multiplying a Velocity by a Mass returns a value of type Momentum

Source§

type Output = Momentum<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for VolumePerMass<T>
where T: NumLike,

Multiplying a VolumePerMass by a Mass returns a value of type Volume

Source§

type Output = Volume<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for f32
where T: NumLike + From<f32>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for f64
where T: NumLike + From<f64>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for i16
where T: NumLike + From<i16>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for i32
where T: NumLike + From<i32>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for i64
where T: NumLike + From<i64>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for i8
where T: NumLike + From<i8>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for u16
where T: NumLike + From<u16>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for u32
where T: NumLike + From<u32>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for u64
where T: NumLike + From<u64>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Mass<T>> for u8
where T: NumLike + From<u8>,

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Mass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Molality<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a Molality returns a value of type Amount

Source§

type Output = Amount<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Molality<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Molality<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a Molality returns a value of type Amount

Source§

type Output = Amount<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Molality<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: NumLike> Mul<T> for &Mass<T>

Multiplying a unit value by a scalar value returns a unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: T) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: NumLike> Mul<T> for Mass<T>

Multiplying a unit value by a scalar value returns a unit value

Source§

type Output = Mass<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: T) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Velocity<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a Velocity returns a value of type Momentum

Source§

type Output = Momentum<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Velocity<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<Velocity<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a Velocity returns a value of type Momentum

Source§

type Output = Momentum<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Velocity<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<VolumePerMass<T>> for &Mass<T>
where T: NumLike,

Multiplying a Mass by a VolumePerMass returns a value of type Volume

Source§

type Output = Volume<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: VolumePerMass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T> Mul<VolumePerMass<T>> for Mass<T>
where T: NumLike,

Multiplying a Mass by a VolumePerMass returns a value of type Volume

Source§

type Output = Volume<T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: VolumePerMass<T>) -> Self::Output

Performs the * operation. Read more
Source§

impl<T: NumLike> MulAssign<T> for Mass<T>

Multiplies this unit value by a scalar

Source§

fn mul_assign(&mut self, rhs: T)

Performs the *= operation. Read more
Source§

impl<T: NumLike> Neg for &Mass<T>

Flips the sign of this unit value (automatically clones the referenced data for convenient ergonomics)

Source§

type Output = Mass<T>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<T: NumLike> Neg for Mass<T>

Flips the sign of this unit value

Source§

type Output = Mass<T>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl<T> Ord for Mass<T>
where T: NumLike + Ord,

This struct implements the Ord trait if it’s member data type also has the Ord trait

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<T> PartialEq for Mass<T>
where T: NumLike + PartialEq,

This struct implements the PartialEq trait if it’s member data type also has the PartialEq trait

Source§

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

Tests for self and other values to be equal, and is used by ==.
Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T> PartialOrd for Mass<T>
where T: NumLike + PartialOrd,

This struct implements the PartialOrd trait if it’s member data type also has the PartialOrd trait

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<T: NumLike> Sub for &Mass<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§

type Output = Mass<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: NumLike> Sub for Mass<T>

Subtracting two unit values of the same type returns a new unit value of the same type

Source§

type Output = Mass<T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<T: NumLike> SubAssign for Mass<T>

Subtracts the given unit value from this unit value

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl<T> Copy for Mass<T>
where T: NumLike + Copy,

This struct implements the Copy marker trait if it’s member data type also has the Copy trait

Source§

impl<T> Eq for Mass<T>
where T: NumLike + PartialEq + Eq,

This struct implements the core::cmp::Eq trait if it’s member data type also has the core::cmp::Eq trait

Auto Trait Implementations§

§

impl<T> Freeze for Mass<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for Mass<T>
where T: RefUnwindSafe,

§

impl<T> Send for Mass<T>
where T: Send,

§

impl<T> Sync for Mass<T>
where T: Sync,

§

impl<T> Unpin for Mass<T>
where T: Unpin,

§

impl<T> UnsafeUnpin for Mass<T>
where T: UnsafeUnpin,

§

impl<T> UnwindSafe for Mass<T>
where T: UnwindSafe,

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.