Enum oca_bundle::state::oca::overlay::unit::MetricUnit
source · pub enum MetricUnit {
Show 18 variants
Kilogram,
Gram,
Milligram,
Liter,
Milliliter,
Meter,
Centimeter,
Millimeter,
Inch,
Foot,
Yard,
Mile,
Celsius,
Fahrenheit,
Kelvin,
Percent,
Count,
Other,
}Variants§
Kilogram
Gram
Milligram
Liter
Milliliter
Meter
Centimeter
Millimeter
Inch
Foot
Yard
Mile
Celsius
Fahrenheit
Kelvin
Percent
Count
Other
Trait Implementations§
source§impl Clone for MetricUnit
impl Clone for MetricUnit
source§fn clone(&self) -> MetricUnit
fn clone(&self) -> MetricUnit
Returns a copy 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 MetricUnit
impl Debug for MetricUnit
source§impl<'de> Deserialize<'de> for MetricUnit
impl<'de> Deserialize<'de> for MetricUnit
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 FromStr for MetricUnit
impl FromStr for MetricUnit
source§impl Hash for MetricUnit
impl Hash for MetricUnit
source§impl PartialEq for MetricUnit
impl PartialEq for MetricUnit
source§fn eq(&self, other: &MetricUnit) -> bool
fn eq(&self, other: &MetricUnit) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MetricUnit
impl Serialize for MetricUnit
impl Eq for MetricUnit
impl StructuralEq for MetricUnit
impl StructuralPartialEq for MetricUnit
Auto Trait Implementations§
impl RefUnwindSafe for MetricUnit
impl Send for MetricUnit
impl Sync for MetricUnit
impl Unpin for MetricUnit
impl UnwindSafe for MetricUnit
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.