[][src]Enum openaip::AltitudeReference

pub enum AltitudeReference {
    GND,
    MSL,
    STD,
}

GND (ground), MSL (mean sea level) or STD (standard atmosphere)

Variants

GND

Ground

MSL

Mean sea level

STD

Standard atmosphere

Trait Implementations

impl Debug for AltitudeReference[src]

impl Eq for AltitudeReference[src]

impl FromStr for AltitudeReference[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!(AltitudeReference::from_str("GND").unwrap(), AltitudeReference::GND);
assert_eq!(AltitudeReference::from_str("STD").unwrap(), AltitudeReference::STD);
assert_eq!(AltitudeReference::from_str("MSL").unwrap(), AltitudeReference::MSL);
assert!(AltitudeReference::from_str("foobar").is_err());

impl PartialEq<AltitudeReference> for AltitudeReference[src]

impl StructuralEq for AltitudeReference[src]

impl StructuralPartialEq for AltitudeReference[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.