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