Struct lsm303agr::MagneticField
source · pub struct MagneticField { /* private fields */ }
Expand description
A magnetic field measurement.
Implementations§
source§impl MagneticField
impl MagneticField
sourcepub const fn x_unscaled(&self) -> i16
pub const fn x_unscaled(&self) -> i16
Unscaled magnetic field in X-direction.
sourcepub const fn y_unscaled(&self) -> i16
pub const fn y_unscaled(&self) -> i16
Unscaled magnetic field in Y-direction.
sourcepub const fn z_unscaled(&self) -> i16
pub const fn z_unscaled(&self) -> i16
Unscaled magnetic field in Z-direction.
sourcepub const fn xyz_unscaled(&self) -> (i16, i16, i16)
pub const fn xyz_unscaled(&self) -> (i16, i16, i16)
Unscaled magnetic field in X-, Y- and Z-directions.
Trait Implementations§
source§impl Clone for MagneticField
impl Clone for MagneticField
source§fn clone(&self) -> MagneticField
fn clone(&self) -> MagneticField
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 MagneticField
impl Debug for MagneticField
source§impl Default for MagneticField
impl Default for MagneticField
source§fn default() -> MagneticField
fn default() -> MagneticField
Returns the “default value” for a type. Read more
source§impl PartialEq for MagneticField
impl PartialEq for MagneticField
source§fn eq(&self, other: &MagneticField) -> bool
fn eq(&self, other: &MagneticField) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MagneticField
impl StructuralPartialEq for MagneticField
Auto Trait Implementations§
impl RefUnwindSafe for MagneticField
impl Send for MagneticField
impl Sync for MagneticField
impl Unpin for MagneticField
impl UnwindSafe for MagneticField
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