[][src]Enum openaip::AltitudeUnit

pub enum AltitudeUnit {
    Feet,
    FlightLevel,
}

Feet or FlightLevel

Variants

Feet
FlightLevel

Trait Implementations

impl Debug for AltitudeUnit[src]

impl Eq for AltitudeUnit[src]

impl FromStr for AltitudeUnit[src]

type Err = Error

The associated error which can be returned from parsing.

pub fn from_str(s: &str) -> Result<Self, Self::Err>[src]

Examples

assert_eq!(AltitudeUnit::from_str("F").unwrap(), AltitudeUnit::Feet);
assert_eq!(AltitudeUnit::from_str("FL").unwrap(), AltitudeUnit::FlightLevel);
assert!(AltitudeUnit::from_str("foobar").is_err());

impl PartialEq<AltitudeUnit> for AltitudeUnit[src]

impl StructuralEq for AltitudeUnit[src]

impl StructuralPartialEq for AltitudeUnit[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.