pub enum Unit {
Show 24 variants
Ounces,
Pounds,
Kilograms,
Grams,
Milligrams,
Inches,
Feet,
Meters,
Centimeters,
Millimeters,
SquareMeters,
SquareCentimeters,
SquareFeet,
SquareInches,
Gallons,
Pints,
Quarts,
FluidOunces,
Liters,
CubicMeters,
CubicFeet,
CubicInches,
CubicCentimeters,
Count,
}Expand description
The unit of measure.
Variants§
Ounces
Pounds
Kilograms
Grams
Milligrams
Inches
Feet
Meters
Centimeters
Millimeters
SquareMeters
SquareCentimeters
SquareFeet
SquareInches
Gallons
Pints
Quarts
FluidOunces
Liters
CubicMeters
CubicFeet
CubicInches
CubicCentimeters
Count
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Unit
impl<'de> Deserialize<'de> for Unit
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 Ord for Unit
impl Ord for Unit
Source§impl PartialOrd for Unit
impl PartialOrd for Unit
impl Copy for Unit
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnwindSafe for Unit
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