pub enum MeasurementUnitVolume {
GenericFluidOunce,
GenericShot,
GenericCup,
GenericPint,
GenericQuart,
GenericGallon,
ImperialCubicInch,
ImperialCubicFoot,
ImperialCubicYard,
MetricMilliliter,
MetricLiter,
}
Expand description
The unit of volume used to measure a quantity.
Variants
GenericFluidOunce
The volume is measured in ounces.
GenericShot
The volume is measured in shots.
GenericCup
The volume is measured in cups.
GenericPint
The volume is measured in pints.
GenericQuart
The volume is measured in quarts.
GenericGallon
The volume is measured in gallons.
ImperialCubicInch
The volume is measured in cubic inches.
ImperialCubicFoot
The volume is measured in cubic feet.
ImperialCubicYard
The volume is measured in cubic yards.
MetricMilliliter
The volume is measured in metric milliliters.
MetricLiter
The volume is measured in metric liters.
Trait Implementations
sourceimpl Clone for MeasurementUnitVolume
impl Clone for MeasurementUnitVolume
sourcefn clone(&self) -> MeasurementUnitVolume
fn clone(&self) -> MeasurementUnitVolume
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MeasurementUnitVolume
impl Debug for MeasurementUnitVolume
sourceimpl<'de> Deserialize<'de> for MeasurementUnitVolume
impl<'de> Deserialize<'de> for MeasurementUnitVolume
sourcefn 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
sourceimpl PartialEq<MeasurementUnitVolume> for MeasurementUnitVolume
impl PartialEq<MeasurementUnitVolume> for MeasurementUnitVolume
sourcefn eq(&self, other: &MeasurementUnitVolume) -> bool
fn eq(&self, other: &MeasurementUnitVolume) -> bool
sourceimpl Serialize for MeasurementUnitVolume
impl Serialize for MeasurementUnitVolume
impl Eq for MeasurementUnitVolume
impl StructuralEq for MeasurementUnitVolume
impl StructuralPartialEq for MeasurementUnitVolume
Auto Trait Implementations
impl RefUnwindSafe for MeasurementUnitVolume
impl Send for MeasurementUnitVolume
impl Sync for MeasurementUnitVolume
impl Unpin for MeasurementUnitVolume
impl UnwindSafe for MeasurementUnitVolume
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.