#[repr(transparent)]pub struct SpecificVolume {
pub value: f64,
}Fields§
§value: f64Implementations§
Source§impl SpecificVolume
impl SpecificVolume
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) -> SpecificVolume
pub fn as_uom(&self) -> SpecificVolume
pub fn from_uom(inner: SpecificVolume) -> Self
Trait Implementations§
Source§impl Add for SpecificVolume
impl Add for SpecificVolume
Source§impl AddAssign for SpecificVolume
impl AddAssign for SpecificVolume
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 SpecificVolume
impl<'de, Context> BorrowDecode<'de, Context> for SpecificVolume
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 SpecificVolume
impl Clone for SpecificVolume
Source§fn clone(&self) -> SpecificVolume
fn clone(&self) -> SpecificVolume
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SpecificVolume
Source§impl Debug for SpecificVolume
impl Debug for SpecificVolume
Source§impl<Context> Decode<Context> for SpecificVolume
impl<Context> Decode<Context> for SpecificVolume
Source§impl Default for SpecificVolume
impl Default for SpecificVolume
Source§impl<'de> Deserialize<'de> for SpecificVolume
impl<'de> Deserialize<'de> for SpecificVolume
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 SpecificVolume
impl Div<f64> for SpecificVolume
Source§impl DivAssign<f64> for SpecificVolume
impl DivAssign<f64> for SpecificVolume
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/= operation. Read moreSource§impl Encode for SpecificVolume
impl Encode for SpecificVolume
Source§impl From<Quantity<dyn Dimension<Kind = dyn Kind, J = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, N = Z0, T = Z0, M = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0>, dyn Units<f64, amount_of_substance = mole, length = meter, electric_current = ampere, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram>, f64>> for SpecificVolume
impl From<Quantity<dyn Dimension<Kind = dyn Kind, J = Z0, L = PInt<UInt<UInt<UTerm, B1>, B1>>, N = Z0, T = Z0, M = NInt<UInt<UTerm, B1>>, I = Z0, Th = Z0>, dyn Units<f64, amount_of_substance = mole, length = meter, electric_current = ampere, thermodynamic_temperature = kelvin, luminous_intensity = candela, time = second, mass = kilogram>, f64>> for SpecificVolume
Source§fn from(value: SpecificVolume) -> Self
fn from(value: SpecificVolume) -> Self
Converts to this type from the input type.
Source§impl From<SpecificVolume> for SpecificVolume
impl From<SpecificVolume> for SpecificVolume
Source§fn from(value: SpecificVolume) -> Self
fn from(value: SpecificVolume) -> Self
Converts to this type from the input type.
Source§impl Mul<f64> for SpecificVolume
impl Mul<f64> for SpecificVolume
Source§impl MulAssign<f64> for SpecificVolume
impl MulAssign<f64> for SpecificVolume
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*= operation. Read moreSource§impl Neg for SpecificVolume
impl Neg for SpecificVolume
Source§impl PartialEq for SpecificVolume
impl PartialEq for SpecificVolume
Source§fn eq(&self, other: &SpecificVolume) -> bool
fn eq(&self, other: &SpecificVolume) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SpecificVolume
impl PartialOrd for SpecificVolume
Source§impl Serialize for SpecificVolume
impl Serialize for SpecificVolume
impl StructuralPartialEq for SpecificVolume
Source§impl Sub for SpecificVolume
impl Sub for SpecificVolume
Source§impl SubAssign for SpecificVolume
impl SubAssign for SpecificVolume
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for SpecificVolume
impl RefUnwindSafe for SpecificVolume
impl Send for SpecificVolume
impl Sync for SpecificVolume
impl Unpin for SpecificVolume
impl UnsafeUnpin for SpecificVolume
impl UnwindSafe for SpecificVolume
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