[−][src]Struct nmea0183::coords::Longitude
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.
fn try_from(value: f32) -> Result<Self, Self::Error>
[src]
impl TryFrom<f64> for Longitude
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,