[][src]Struct accelerometer::vector::I32x2

pub struct I32x2 {
    pub x: i32,
    pub y: i32,
}

2-dimensional XY vector of i32 values

Fields

x: i32

X component

y: i32

Y component

Methods

impl I32x2[src]

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

Instantiate from X and Y components

Trait Implementations

impl PartialEq<I32x2> for I32x2[src]

impl StructuralPartialEq for I32x2[src]

impl Debug for I32x2[src]

impl Index<usize> for I32x2[src]

type Output = i32

The returned type after indexing.

impl Default for I32x2[src]

impl Vector for I32x2[src]

type Component = i32

Type representing measured acceleration for a particular axis

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

Number of axes

impl Copy for I32x2[src]

impl Clone for I32x2[src]

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

Auto Trait Implementations

impl Unpin for I32x2

impl Send for I32x2

impl Sync for I32x2

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self