Enum lsm303c::MagDataRate
source · pub enum MagDataRate {
_0_625_Hz,
_1_25_Hz,
_2_5_Hz,
_5_Hz,
_10_Hz,
_20_Hz,
_40_Hz,
_80_Hz,
}
Expand description
Magnetometer Output Data Rate
Variants
_0_625_Hz
0.625Hz
_1_25_Hz
1.25Hz
_2_5_Hz
2.5Hz
_5_Hz
5Hz
_10_Hz
10Hz
_20_Hz
20Hz
_40_Hz
40Hz
_80_Hz
80Hz
Trait Implementations
sourceimpl Clone for MagDataRate
impl Clone for MagDataRate
sourcefn clone(&self) -> MagDataRate
fn clone(&self) -> MagDataRate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MagDataRate
impl Debug for MagDataRate
sourceimpl Default for MagDataRate
impl Default for MagDataRate
impl Copy for MagDataRate
Auto Trait Implementations
impl RefUnwindSafe for MagDataRate
impl Send for MagDataRate
impl Sync for MagDataRate
impl Unpin for MagDataRate
impl UnwindSafe for MagDataRate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.