pub struct LinearPowerDensity(/* private fields */);Implementations§
Source§impl LinearPowerDensity
impl LinearPowerDensity
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) -> LinearPowerDensity
pub fn as_uom(&self) -> &LinearPowerDensity
pub fn from_uom(inner: LinearPowerDensity) -> Self
Methods from Deref<Target = LinearPowerDensity>§
pub const HALF_TURN: Quantity<dyn Dimension<Kind = dyn AngleKind, I = Z0, M = Z0, Th = Z0, N = Z0, T = Z0, J = Z0, L = Z0>, dyn Units<f32, time = second, thermodynamic_temperature = kelvin, mass = kilogram, luminous_intensity = candela, amount_of_substance = mole, electric_current = ampere, length = meter>, f32>
pub const FULL_TURN: Quantity<dyn Dimension<Kind = dyn AngleKind, I = Z0, M = Z0, Th = Z0, N = Z0, T = Z0, J = Z0, L = Z0>, dyn Units<f32, time = second, thermodynamic_temperature = kelvin, mass = kilogram, luminous_intensity = candela, amount_of_substance = mole, electric_current = ampere, length = meter>, f32>
pub const HALF_TURN: Quantity<dyn Dimension<Kind = dyn AngleKind, I = Z0, M = Z0, Th = Z0, N = Z0, T = Z0, J = Z0, L = Z0>, dyn Units<f64, time = second, thermodynamic_temperature = kelvin, mass = kilogram, luminous_intensity = candela, amount_of_substance = mole, electric_current = ampere, length = meter>, f64>
pub const FULL_TURN: Quantity<dyn Dimension<Kind = dyn AngleKind, I = Z0, M = Z0, Th = Z0, N = Z0, T = Z0, J = Z0, L = Z0>, dyn Units<f64, time = second, thermodynamic_temperature = kelvin, mass = kilogram, luminous_intensity = candela, amount_of_substance = mole, electric_current = ampere, length = meter>, f64>
pub const SPHERE: Quantity<dyn Dimension<Kind = dyn SolidAngleKind, I = Z0, M = Z0, Th = Z0, N = Z0, T = Z0, J = Z0, L = Z0>, dyn Units<f32, time = second, thermodynamic_temperature = kelvin, mass = kilogram, luminous_intensity = candela, amount_of_substance = mole, electric_current = ampere, length = meter>, f32>
pub const SPHERE: Quantity<dyn Dimension<Kind = dyn SolidAngleKind, I = Z0, M = Z0, Th = Z0, N = Z0, T = Z0, J = Z0, L = Z0>, dyn Units<f64, time = second, thermodynamic_temperature = kelvin, mass = kilogram, luminous_intensity = candela, amount_of_substance = mole, electric_current = ampere, length = meter>, f64>
Trait Implementations§
Source§impl Add for LinearPowerDensity
impl Add for LinearPowerDensity
Source§impl AddAssign for LinearPowerDensity
impl AddAssign for LinearPowerDensity
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 LinearPowerDensity
impl<'de, Context> BorrowDecode<'de, Context> for LinearPowerDensity
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 LinearPowerDensity
impl Clone for LinearPowerDensity
Source§fn clone(&self) -> LinearPowerDensity
fn clone(&self) -> LinearPowerDensity
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 LinearPowerDensity
impl Debug for LinearPowerDensity
Source§impl<Context> Decode<Context> for LinearPowerDensity
impl<Context> Decode<Context> for LinearPowerDensity
Source§impl Default for LinearPowerDensity
impl Default for LinearPowerDensity
Source§impl Deref for LinearPowerDensity
impl Deref for LinearPowerDensity
Source§type Target = Quantity<dyn Dimension<Kind = dyn Kind, I = Z0, M = PInt<UInt<UTerm, B1>>, Th = Z0, N = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0, L = PInt<UInt<UTerm, B1>>>, dyn Units<f32, time = second, thermodynamic_temperature = kelvin, mass = kilogram, luminous_intensity = candela, amount_of_substance = mole, electric_current = ampere, length = meter>, f32>
type Target = Quantity<dyn Dimension<Kind = dyn Kind, I = Z0, M = PInt<UInt<UTerm, B1>>, Th = Z0, N = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0, L = PInt<UInt<UTerm, B1>>>, dyn Units<f32, time = second, thermodynamic_temperature = kelvin, mass = kilogram, luminous_intensity = candela, amount_of_substance = mole, electric_current = ampere, length = meter>, f32>
The resulting type after dereferencing.
Source§impl<'de> Deserialize<'de> for LinearPowerDensity
impl<'de> Deserialize<'de> for LinearPowerDensity
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 LinearPowerDensity
impl Div<f32> for LinearPowerDensity
Source§impl DivAssign<f32> for LinearPowerDensity
impl DivAssign<f32> for LinearPowerDensity
Source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the
/= operation. Read moreSource§impl Encode for LinearPowerDensity
impl Encode for LinearPowerDensity
Source§impl From<LinearPowerDensity> for LinearPowerDensity
impl From<LinearPowerDensity> for LinearPowerDensity
Source§fn from(value: LinearPowerDensity) -> Self
fn from(value: LinearPowerDensity) -> Self
Converts to this type from the input type.
Source§impl From<Quantity<dyn Dimension<Kind = dyn Kind, I = Z0, M = PInt<UInt<UTerm, B1>>, Th = Z0, N = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0, L = PInt<UInt<UTerm, B1>>>, dyn Units<f32, time = second, thermodynamic_temperature = kelvin, mass = kilogram, luminous_intensity = candela, amount_of_substance = mole, electric_current = ampere, length = meter>, f32>> for LinearPowerDensity
impl From<Quantity<dyn Dimension<Kind = dyn Kind, I = Z0, M = PInt<UInt<UTerm, B1>>, Th = Z0, N = Z0, T = NInt<UInt<UInt<UTerm, B1>, B1>>, J = Z0, L = PInt<UInt<UTerm, B1>>>, dyn Units<f32, time = second, thermodynamic_temperature = kelvin, mass = kilogram, luminous_intensity = candela, amount_of_substance = mole, electric_current = ampere, length = meter>, f32>> for LinearPowerDensity
Source§fn from(value: LinearPowerDensity) -> Self
fn from(value: LinearPowerDensity) -> Self
Converts to this type from the input type.
Source§impl Mul<f32> for LinearPowerDensity
impl Mul<f32> for LinearPowerDensity
Source§impl MulAssign<f32> for LinearPowerDensity
impl MulAssign<f32> for LinearPowerDensity
Source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*= operation. Read moreSource§impl Neg for LinearPowerDensity
impl Neg for LinearPowerDensity
Source§impl PartialEq for LinearPowerDensity
impl PartialEq for LinearPowerDensity
Source§impl PartialOrd for LinearPowerDensity
impl PartialOrd for LinearPowerDensity
Source§impl Serialize for LinearPowerDensity
impl Serialize for LinearPowerDensity
Source§impl Sub for LinearPowerDensity
impl Sub for LinearPowerDensity
Source§impl SubAssign for LinearPowerDensity
impl SubAssign for LinearPowerDensity
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for LinearPowerDensity
impl StructuralPartialEq for LinearPowerDensity
Auto Trait Implementations§
impl Freeze for LinearPowerDensity
impl RefUnwindSafe for LinearPowerDensity
impl Send for LinearPowerDensity
impl Sync for LinearPowerDensity
impl Unpin for LinearPowerDensity
impl UnwindSafe for LinearPowerDensity
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