[][src]Struct nmea0183::coords::Longitude

pub struct Longitude {
    pub degrees: u8,
    pub minutes: u8,
    pub seconds: f32,
    pub hemisphere: Hemisphere,
}

Longitude as reported by receiver.

Fields

degrees: u8

Degrees

minutes: u8

Minutes

seconds: f32

Second. Precision depends on receiver.

hemisphere: Hemisphere

Earth hemisphere. East or West.

Methods

impl Longitude[src]

pub fn as_f64(&self) -> f64[src]

Return longitude in degrees f64 value. Negative for West hemisphere, positive for East.

pub fn is_west(&self) -> bool[src]

Is in west hemisphere

pub fn is_east(&self) -> bool[src]

Is in east hemisphere

Trait Implementations

impl PartialEq<Longitude> for Longitude[src]

impl Debug for Longitude[src]

impl TryFrom<f32> for Longitude[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<f64> for Longitude[src]

type Error = &'static str

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Unpin for Longitude

impl Send for Longitude

impl Sync for Longitude

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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.

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

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

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