#[non_exhaustive]pub enum Unit {
DegreeTrue,
Knot,
MetrePerSecond,
KiloMetre,
Metre,
StatuteMile,
Foot,
DegreeCelsius,
HectoPascal,
InchOfMercury,
}Expand description
Unit of a physical quantity.
JSON representation is using common symbols.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DegreeTrue
True degree.
JSON representation:
"degT"Knot
Knot.
JSON representation:
"kt"MetrePerSecond
Metre per second.
JSON representation:
"m/s"KiloMetre
Kilometre.
JSON representation:
"km"Metre
Metre.
JSON representation:
"m"StatuteMile
Statute mile.
JSON representation:
"mi"Foot
Foot.
JSON representation:
"ft"DegreeCelsius
Degree Celsius.
JSON representation:
"degC"HectoPascal
Hectopascal.
JSON representation:
"hPa"InchOfMercury
Inch of mercury.
JSON representation:
"inHg"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
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