Enum capsules_extra::lsm303xx::Lsm303Scale
source · pub enum Lsm303Scale {
Scale2G = 0,
Scale4G = 1,
Scale8G = 2,
Scale16G = 3,
}
Variants§
Trait Implementations§
source§impl Clone for Lsm303Scale
impl Clone for Lsm303Scale
source§fn clone(&self) -> Lsm303Scale
fn clone(&self) -> Lsm303Scale
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 FromPrimitive for Lsm303Scale
impl FromPrimitive for Lsm303Scale
source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Convert an
i64
to return an optional value of this type. If the
type cannot be represented by this value, then None
is returned.source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Convert an
u64
to return an optional value of this type. If the
type cannot be represented by this value, then None
is returned.source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Convert an
isize
to return an optional value of this type. If the
value cannot be represented by this value, then None
is returned.source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Convert an
i8
to return an optional value of this type. If the
type cannot be represented by this value, then None
is returned.source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Convert an
i16
to return an optional value of this type. If the
type cannot be represented by this value, then None
is returned.source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Convert an
i32
to return an optional value of this type. If the
type cannot be represented by this value, then None
is returned.source§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Convert a
usize
to return an optional value of this type. If the
type cannot be represented by this value, then None
is returned.source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Convert an
u8
to return an optional value of this type. If the
type cannot be represented by this value, then None
is returned.source§impl PartialEq for Lsm303Scale
impl PartialEq for Lsm303Scale
source§fn eq(&self, other: &Lsm303Scale) -> bool
fn eq(&self, other: &Lsm303Scale) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Lsm303Scale
impl StructuralPartialEq for Lsm303Scale
Auto Trait Implementations§
impl Freeze for Lsm303Scale
impl RefUnwindSafe for Lsm303Scale
impl Send for Lsm303Scale
impl Sync for Lsm303Scale
impl Unpin for Lsm303Scale
impl UnwindSafe for Lsm303Scale
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)