pub enum WeightUnit {
Kg,
G,
Lb,
Oz,
Empty,
Null,
}Expand description
kg- Kilograms *g- Grams *lb- Pounds *oz- Ounces
Variants§
Trait Implementations§
Source§impl Clone for WeightUnit
impl Clone for WeightUnit
Source§fn clone(&self) -> WeightUnit
fn clone(&self) -> WeightUnit
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 WeightUnit
impl Debug for WeightUnit
Source§impl Default for WeightUnit
impl Default for WeightUnit
Source§fn default() -> WeightUnit
fn default() -> WeightUnit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WeightUnit
impl<'de> Deserialize<'de> for WeightUnit
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 Hash for WeightUnit
impl Hash for WeightUnit
Source§impl Ord for WeightUnit
impl Ord for WeightUnit
Source§fn cmp(&self, other: &WeightUnit) -> Ordering
fn cmp(&self, other: &WeightUnit) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WeightUnit
impl PartialEq for WeightUnit
Source§impl PartialOrd for WeightUnit
impl PartialOrd for WeightUnit
Source§impl Serialize for WeightUnit
impl Serialize for WeightUnit
impl Copy for WeightUnit
impl Eq for WeightUnit
impl StructuralPartialEq for WeightUnit
Auto Trait Implementations§
impl Freeze for WeightUnit
impl RefUnwindSafe for WeightUnit
impl Send for WeightUnit
impl Sync for WeightUnit
impl Unpin for WeightUnit
impl UnwindSafe for WeightUnit
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