pub struct LiquidVolume {
pub unit: Unit,
pub value: f64,
}Expand description
LiquidVolume : Liquid Volume.
Fields§
§unit: UnitThe unit of measurement.
value: f64The measurement value.
Implementations§
Source§impl LiquidVolume
impl LiquidVolume
Sourcepub fn new(unit: Unit, value: f64) -> LiquidVolume
pub fn new(unit: Unit, value: f64) -> LiquidVolume
Liquid Volume.
Trait Implementations§
Source§impl Clone for LiquidVolume
impl Clone for LiquidVolume
Source§fn clone(&self) -> LiquidVolume
fn clone(&self) -> LiquidVolume
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 LiquidVolume
impl Debug for LiquidVolume
Source§impl Default for LiquidVolume
impl Default for LiquidVolume
Source§fn default() -> LiquidVolume
fn default() -> LiquidVolume
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LiquidVolume
impl<'de> Deserialize<'de> for LiquidVolume
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 PartialEq for LiquidVolume
impl PartialEq for LiquidVolume
Source§impl Serialize for LiquidVolume
impl Serialize for LiquidVolume
impl StructuralPartialEq for LiquidVolume
Auto Trait Implementations§
impl Freeze for LiquidVolume
impl RefUnwindSafe for LiquidVolume
impl Send for LiquidVolume
impl Sync for LiquidVolume
impl Unpin for LiquidVolume
impl UnsafeUnpin for LiquidVolume
impl UnwindSafe for LiquidVolume
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