pub struct LinearNumberDensity(/* private fields */);Implementations§
Source§impl LinearNumberDensity
impl LinearNumberDensity
pub fn new<U>(value: f32) -> Selfwhere
U: Conversion<f32>,
pub fn get<U>(&self) -> f32where
U: Conversion<f32>,
pub fn raw(&self) -> f32
pub fn into_uom(self) -> LinearNumberDensity
pub fn as_uom(&self) -> &LinearNumberDensity
pub fn from_uom(inner: LinearNumberDensity) -> Self
Methods from Deref<Target = LinearNumberDensity>§
pub const HALF_TURN: Quantity<dyn Dimension<T = Z0, L = Z0, M = Z0, N = Z0, I = Z0, J = Z0, Th = Z0, Kind = dyn AngleKind>, dyn Units<f32, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f32>
pub const FULL_TURN: Quantity<dyn Dimension<T = Z0, L = Z0, M = Z0, N = Z0, I = Z0, J = Z0, Th = Z0, Kind = dyn AngleKind>, dyn Units<f32, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f32>
pub const HALF_TURN: Quantity<dyn Dimension<T = Z0, L = Z0, M = Z0, N = Z0, I = Z0, J = Z0, Th = Z0, Kind = dyn AngleKind>, dyn Units<f64, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f64>
pub const FULL_TURN: Quantity<dyn Dimension<T = Z0, L = Z0, M = Z0, N = Z0, I = Z0, J = Z0, Th = Z0, Kind = dyn AngleKind>, dyn Units<f64, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f64>
pub const SPHERE: Quantity<dyn Dimension<T = Z0, L = Z0, M = Z0, N = Z0, I = Z0, J = Z0, Th = Z0, Kind = dyn SolidAngleKind>, dyn Units<f32, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f32>
pub const SPHERE: Quantity<dyn Dimension<T = Z0, L = Z0, M = Z0, N = Z0, I = Z0, J = Z0, Th = Z0, Kind = dyn SolidAngleKind>, dyn Units<f64, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f64>
Trait Implementations§
Source§impl Add for LinearNumberDensity
impl Add for LinearNumberDensity
Source§impl AddAssign for LinearNumberDensity
impl AddAssign for LinearNumberDensity
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreSource§impl<'de, Context> BorrowDecode<'de, Context> for LinearNumberDensity
impl<'de, Context> BorrowDecode<'de, Context> for LinearNumberDensity
Source§fn borrow_decode<D: BorrowDecoder<'de, Context = Context>>(
decoder: &mut D,
) -> Result<Self, DecodeError>
fn borrow_decode<D: BorrowDecoder<'de, Context = Context>>( decoder: &mut D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for LinearNumberDensity
impl Clone for LinearNumberDensity
Source§fn clone(&self) -> LinearNumberDensity
fn clone(&self) -> LinearNumberDensity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinearNumberDensity
impl Debug for LinearNumberDensity
Source§impl<Context> Decode<Context> for LinearNumberDensity
impl<Context> Decode<Context> for LinearNumberDensity
Source§impl Default for LinearNumberDensity
impl Default for LinearNumberDensity
Source§impl Deref for LinearNumberDensity
impl Deref for LinearNumberDensity
Source§type Target = Quantity<dyn Dimension<T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, N = Z0, I = Z0, J = Z0, Th = Z0, Kind = dyn ConstituentConcentrationKind>, dyn Units<f32, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f32>
type Target = Quantity<dyn Dimension<T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, N = Z0, I = Z0, J = Z0, Th = Z0, Kind = dyn ConstituentConcentrationKind>, dyn Units<f32, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f32>
The resulting type after dereferencing.
Source§impl<'de> Deserialize<'de> for LinearNumberDensity
impl<'de> Deserialize<'de> for LinearNumberDensity
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Div<f32> for LinearNumberDensity
impl Div<f32> for LinearNumberDensity
Source§impl DivAssign<f32> for LinearNumberDensity
impl DivAssign<f32> for LinearNumberDensity
Source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the
/= operation. Read moreSource§impl Encode for LinearNumberDensity
impl Encode for LinearNumberDensity
Source§impl From<LinearNumberDensity> for LinearNumberDensity
impl From<LinearNumberDensity> for LinearNumberDensity
Source§fn from(value: LinearNumberDensity) -> Self
fn from(value: LinearNumberDensity) -> Self
Converts to this type from the input type.
Source§impl From<Quantity<dyn Dimension<T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, N = Z0, I = Z0, J = Z0, Th = Z0, Kind = dyn ConstituentConcentrationKind>, dyn Units<f32, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f32>> for LinearNumberDensity
impl From<Quantity<dyn Dimension<T = Z0, L = NInt<UInt<UTerm, B1>>, M = Z0, N = Z0, I = Z0, J = Z0, Th = Z0, Kind = dyn ConstituentConcentrationKind>, dyn Units<f32, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram, length = meter, amount_of_substance = mole, electric_current = ampere>, f32>> for LinearNumberDensity
Source§fn from(value: LinearNumberDensity) -> Self
fn from(value: LinearNumberDensity) -> Self
Converts to this type from the input type.
Source§impl Mul<f32> for LinearNumberDensity
impl Mul<f32> for LinearNumberDensity
Source§impl MulAssign<f32> for LinearNumberDensity
impl MulAssign<f32> for LinearNumberDensity
Source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*= operation. Read moreSource§impl Neg for LinearNumberDensity
impl Neg for LinearNumberDensity
Source§impl PartialEq for LinearNumberDensity
impl PartialEq for LinearNumberDensity
Source§impl PartialOrd for LinearNumberDensity
impl PartialOrd for LinearNumberDensity
Source§impl Serialize for LinearNumberDensity
impl Serialize for LinearNumberDensity
Source§impl Sub for LinearNumberDensity
impl Sub for LinearNumberDensity
Source§impl SubAssign for LinearNumberDensity
impl SubAssign for LinearNumberDensity
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for LinearNumberDensity
impl StructuralPartialEq for LinearNumberDensity
Auto Trait Implementations§
impl Freeze for LinearNumberDensity
impl RefUnwindSafe for LinearNumberDensity
impl Send for LinearNumberDensity
impl Sync for LinearNumberDensity
impl Unpin for LinearNumberDensity
impl UnwindSafe for LinearNumberDensity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more