Enum lsm303agr::MagOutputDataRate
source · pub enum MagOutputDataRate {
Hz10,
Hz20,
Hz50,
Hz100,
}
Expand description
Magnetometer output data rate
Variants§
Implementations§
source§impl MagOutputDataRate
impl MagOutputDataRate
sourcepub const fn from_hertz(hz: u16) -> Option<Self>
pub const fn from_hertz(hz: u16) -> Option<Self>
Create an MagOutputDataRate
with the given frequency in Hertz.
Trait Implementations§
source§impl Clone for MagOutputDataRate
impl Clone for MagOutputDataRate
source§fn clone(&self) -> MagOutputDataRate
fn clone(&self) -> MagOutputDataRate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MagOutputDataRate
impl Debug for MagOutputDataRate
source§impl PartialEq for MagOutputDataRate
impl PartialEq for MagOutputDataRate
source§fn eq(&self, other: &MagOutputDataRate) -> bool
fn eq(&self, other: &MagOutputDataRate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MagOutputDataRate
impl StructuralPartialEq for MagOutputDataRate
Auto Trait Implementations§
impl RefUnwindSafe for MagOutputDataRate
impl Send for MagOutputDataRate
impl Sync for MagOutputDataRate
impl Unpin for MagOutputDataRate
impl UnwindSafe for MagOutputDataRate
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more