[][src]Struct adxl313::I32x3

pub struct I32x3 {
    pub x: i32,
    pub y: i32,
    pub z: i32,
}

3-dimensional XYZ vector of i32 values

Fields

x: i32

X component

y: i32

Y component

z: i32

Z component

Implementations

impl I32x3[src]

pub fn new(x: i32, y: i32, z: i32) -> I32x3[src]

Instantiate from X,Y,Z components

Trait Implementations

impl Clone for I32x3[src]

impl Copy for I32x3[src]

impl Debug for I32x3[src]

impl Default for I32x3[src]

impl From<(i32, i32, i32)> for I32x3[src]

impl Index<usize> for I32x3[src]

type Output = i32

The returned type after indexing.

impl PartialEq<I32x3> for I32x3[src]

impl<SPI, CS, E, EO> RawAccelerometer<I32x3> for Adxl313<SPI, CS> where
    SPI: Transfer<u8, Error = E> + Write<u8, Error = E>,
    CS: OutputPin<Error = EO>,
    E: Debug
[src]

type Error = E

Error type

fn accel_raw(&mut self) -> Result<I32x3, Error<E>>[src]

Gets acceleration vector reading from the accelerometer Returns a 3D vector with x,y,z, fields in a Result

impl StructuralPartialEq for I32x3[src]

impl Vector for I32x3[src]

type Component = i32

Type representing measured acceleration for a particular axis

type Axes = UInt<UInt<UTerm, B1>, B1>

Number of axes

Auto Trait Implementations

impl Send for I32x3

impl Sync for I32x3

impl Unpin for I32x3

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.