[][src]Enum lis3dh::Range

#[repr(u8)]pub enum Range {
    G16,
    G8,
    G4,
    G2,
}

Full-scale selection.

Variants

G16

±16g

G8

±8g

G4

±4g

G2

±2g (Default)

Implementations

impl Range[src]

pub fn bits(self) -> u8[src]

Trait Implementations

impl Clone for Range[src]

impl Copy for Range[src]

impl Debug for Range[src]

impl Eq for Range[src]

impl PartialEq<Range> for Range[src]

impl StructuralEq for Range[src]

impl StructuralPartialEq for Range[src]

impl TryFrom<u8> for Range[src]

type Error = TryFromPrimitiveError<Self>

The type returned in the event of a conversion error.

impl TryFromPrimitive for Range[src]

type Primitive = u8

Auto Trait Implementations

impl Send for Range

impl Sync for Range

impl Unpin for Range

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> Same<T> for T

type Output = T

Should always be Self

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.