[][src]Struct ublox::CfgNav5Params

pub struct CfgNav5Params { /* fields omitted */ }

CfgNav5 parameters bitmask

Implementations

impl CfgNav5Params[src]

pub const DYN: CfgNav5Params[src]

Apply dynamic model settings

pub const MIN_EL: CfgNav5Params[src]

Apply minimum elevation settings

pub const POS_FIX_MODE: CfgNav5Params[src]

Apply fix mode settings

pub const DR_LIM: CfgNav5Params[src]

Reserved

pub const POS_MASK_APPLY: CfgNav5Params[src]

position mask settings

pub const TIME_MASK: CfgNav5Params[src]

Apply time mask settings

pub const STATIC_HOLD_MASK: CfgNav5Params[src]

Apply static hold settings

pub const DGPS_MASK: CfgNav5Params[src]

Apply DGPS settings

pub const CNO_THRESHOLD: CfgNav5Params[src]

Apply CNO threshold settings (cnoThresh, cnoThreshNumSVs)

pub const RESERVED9: CfgNav5Params[src]

pub const UTC: CfgNav5Params[src]

Apply UTC settings (not supported in protocol versions less than 16)

pub const RESERVED11: CfgNav5Params[src]

pub const RESERVED12: CfgNav5Params[src]

pub const RESERVED13: CfgNav5Params[src]

pub const RESERVED14: CfgNav5Params[src]

pub const RESERVED15: CfgNav5Params[src]

pub const fn empty() -> CfgNav5Params[src]

Returns an empty set of flags

pub const fn all() -> CfgNav5Params[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u16[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u16) -> Option<CfgNav5Params>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: u16) -> CfgNav5Params[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: u16) -> CfgNav5Params[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

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

Returns true if no flags are currently stored.

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

Returns true if all flags are currently set.

pub const fn intersects(&self, other: CfgNav5Params) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: CfgNav5Params) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: CfgNav5Params)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: CfgNav5Params)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: CfgNav5Params)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: CfgNav5Params, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for CfgNav5Params[src]

impl BitAnd<CfgNav5Params> for CfgNav5Params[src]

type Output = CfgNav5Params

The resulting type after applying the & operator.

pub fn bitand(self, other: CfgNav5Params) -> CfgNav5Params[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<CfgNav5Params> for CfgNav5Params[src]

pub fn bitand_assign(&mut self, other: CfgNav5Params)[src]

Disables all flags disabled in the set.

impl BitOr<CfgNav5Params> for CfgNav5Params[src]

type Output = CfgNav5Params

The resulting type after applying the | operator.

pub fn bitor(self, other: CfgNav5Params) -> CfgNav5Params[src]

Returns the union of the two sets of flags.

impl BitOrAssign<CfgNav5Params> for CfgNav5Params[src]

pub fn bitor_assign(&mut self, other: CfgNav5Params)[src]

Adds the set of flags.

impl BitXor<CfgNav5Params> for CfgNav5Params[src]

type Output = CfgNav5Params

The resulting type after applying the ^ operator.

pub fn bitxor(self, other: CfgNav5Params) -> CfgNav5Params[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<CfgNav5Params> for CfgNav5Params[src]

pub fn bitxor_assign(&mut self, other: CfgNav5Params)[src]

Toggles the set of flags.

impl Clone for CfgNav5Params[src]

impl Copy for CfgNav5Params[src]

impl Debug for CfgNav5Params[src]

impl Default for CfgNav5Params[src]

impl Eq for CfgNav5Params[src]

impl Extend<CfgNav5Params> for CfgNav5Params[src]

impl FromIterator<CfgNav5Params> for CfgNav5Params[src]

impl Hash for CfgNav5Params[src]

impl LowerHex for CfgNav5Params[src]

impl Not for CfgNav5Params[src]

type Output = CfgNav5Params

The resulting type after applying the ! operator.

pub fn not(self) -> CfgNav5Params[src]

Returns the complement of this set of flags.

impl Octal for CfgNav5Params[src]

impl Ord for CfgNav5Params[src]

impl PartialEq<CfgNav5Params> for CfgNav5Params[src]

impl PartialOrd<CfgNav5Params> for CfgNav5Params[src]

impl StructuralEq for CfgNav5Params[src]

impl StructuralPartialEq for CfgNav5Params[src]

impl Sub<CfgNav5Params> for CfgNav5Params[src]

type Output = CfgNav5Params

The resulting type after applying the - operator.

pub fn sub(self, other: CfgNav5Params) -> CfgNav5Params[src]

Returns the set difference of the two sets of flags.

impl SubAssign<CfgNav5Params> for CfgNav5Params[src]

pub fn sub_assign(&mut self, other: CfgNav5Params)[src]

Disables all flags enabled in the set.

impl UpperHex for CfgNav5Params[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> 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.