[][src]Struct nmea0183::coords::Latitude

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

Latitude as reported by receiver.

Fields

degrees: u8

Degrees

minutes: u8

Minutes

seconds: f32

Seconds. Precision depends on receiver.

hemisphere: Hemisphere

Earth hemisphere. North or south.

Methods

impl Latitude[src]

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

Return latitude in degrees f64 value. Negative for South hemisphere, positive for North.

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

Is north hemisphere

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

Is south hemisphere

Trait Implementations

impl PartialEq<Latitude> for Latitude[src]

impl Debug for Latitude[src]

impl TryFrom<f32> for Latitude[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<f64> for Latitude[src]

type Error = &'static str

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Unpin for Latitude

impl Send for Latitude

impl Sync for Latitude

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]