[][src]Enum carrier::proto::location::Fix

#[repr(i32)]
pub enum Fix {
    None,
    Gps,
    DGps,
    Pps,
    Rtk,
    FloatRtk,
    Estimated,
    Manual,
    Simulation,
}

Variants

None
Gps
DGps
Pps
Rtk
FloatRtk
Estimated
Manual
Simulation

Methods

impl Fix[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of Fix.

pub fn from_i32(value: i32) -> Option<Fix>[src]

Converts an i32 to a Fix, or None if value is not a valid variant.

Trait Implementations

impl From<Fix> for i32[src]

impl Clone for Fix[src]

impl Copy for Fix[src]

impl Default for Fix[src]

impl Eq for Fix[src]

impl Ord for Fix[src]

impl PartialEq<Fix> for Fix[src]

impl PartialOrd<Fix> for Fix[src]

impl Debug for Fix[src]

impl Hash for Fix[src]

Auto Trait Implementations

impl Send for Fix

impl Sync for Fix

impl Unpin for Fix

impl UnwindSafe for Fix

impl RefUnwindSafe for Fix

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized
[src]

impl<T> InitializableFromZeroed for T where
    T: Default
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self