Enum PressureUnitLabel
pub enum PressureUnitLabel {
Hectopascal,
Millibar,
Unknown,
Custom(String),
}Expand description
Simple atmospheric pressure unit labels for the stored f64 values.
Variants§
Hectopascal
Hectopascals.
Millibar
Millibars.
Unknown
Unknown unit label.
Custom(String)
Caller-defined unit label.
Trait Implementations§
§impl Clone for PressureUnitLabel
impl Clone for PressureUnitLabel
§fn clone(&self) -> PressureUnitLabel
fn clone(&self) -> PressureUnitLabel
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 more§impl Debug for PressureUnitLabel
impl Debug for PressureUnitLabel
§impl Display for PressureUnitLabel
impl Display for PressureUnitLabel
§impl FromStr for PressureUnitLabel
impl FromStr for PressureUnitLabel
§type Err = PressureUnitLabelParseError
type Err = PressureUnitLabelParseError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<PressureUnitLabel, <PressureUnitLabel as FromStr>::Err>
fn from_str( value: &str, ) -> Result<PressureUnitLabel, <PressureUnitLabel as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for PressureUnitLabel
impl Hash for PressureUnitLabel
§impl Ord for PressureUnitLabel
impl Ord for PressureUnitLabel
§fn cmp(&self, other: &PressureUnitLabel) -> Ordering
fn cmp(&self, other: &PressureUnitLabel) -> 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
§impl PartialEq for PressureUnitLabel
impl PartialEq for PressureUnitLabel
§impl PartialOrd for PressureUnitLabel
impl PartialOrd for PressureUnitLabel
impl Eq for PressureUnitLabel
impl StructuralPartialEq for PressureUnitLabel
Auto Trait Implementations§
impl Freeze for PressureUnitLabel
impl RefUnwindSafe for PressureUnitLabel
impl Send for PressureUnitLabel
impl Sync for PressureUnitLabel
impl Unpin for PressureUnitLabel
impl UnsafeUnpin for PressureUnitLabel
impl UnwindSafe for PressureUnitLabel
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