pub enum MeasurementUnitWeight {
ImperialWeightOunce,
ImperialPound,
ImperialStone,
MetricMilligram,
MetricGram,
MetricKilogram,
}
Expand description
Unit of weight used to measure a quantity.
Variants
ImperialWeightOunce
The weight is measured in ounces.
ImperialPound
The weight is measured in pounds.
ImperialStone
The weight is measured in stones.
MetricMilligram
The weight is measured in milligrams.
MetricGram
The weight is measured in grams.
MetricKilogram
The weight is measured in kilograms.
Trait Implementations
sourceimpl Clone for MeasurementUnitWeight
impl Clone for MeasurementUnitWeight
sourcefn clone(&self) -> MeasurementUnitWeight
fn clone(&self) -> MeasurementUnitWeight
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 MeasurementUnitWeight
impl Debug for MeasurementUnitWeight
sourceimpl<'de> Deserialize<'de> for MeasurementUnitWeight
impl<'de> Deserialize<'de> for MeasurementUnitWeight
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<MeasurementUnitWeight> for MeasurementUnitWeight
impl PartialEq<MeasurementUnitWeight> for MeasurementUnitWeight
sourcefn eq(&self, other: &MeasurementUnitWeight) -> bool
fn eq(&self, other: &MeasurementUnitWeight) -> bool
sourceimpl Serialize for MeasurementUnitWeight
impl Serialize for MeasurementUnitWeight
impl Eq for MeasurementUnitWeight
impl StructuralEq for MeasurementUnitWeight
impl StructuralPartialEq for MeasurementUnitWeight
Auto Trait Implementations
impl RefUnwindSafe for MeasurementUnitWeight
impl Send for MeasurementUnitWeight
impl Sync for MeasurementUnitWeight
impl Unpin for MeasurementUnitWeight
impl UnwindSafe for MeasurementUnitWeight
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.