[][src]Struct micromath::vector::U32x2

pub struct U32x2 {
    pub x: u32,
    pub y: u32,

2-dimensional XY vector of u32 values


x: u32

X component

y: u32

Y component


impl U32x2[src]

pub fn new(x: u32, y: u32) -> Self[src]

Instantiate from X and Y components

Trait Implementations

impl Vector for U32x2[src]

type Component = u32

Type representing measured acceleration for a particular axis

type Axes = U2

Number of axes

impl From<(u32, u32)> for U32x2[src]

impl Debug for U32x2[src]

impl PartialEq<U32x2> for U32x2[src]

impl Index<usize> for U32x2[src]

type Output = u32

The returned type after indexing.

impl Copy for U32x2[src]

impl Clone for U32x2[src]

impl Default for U32x2[src]

Auto Trait Implementations

impl Unpin for U32x2

impl Send for U32x2

impl Sync for U32x2

Blanket Implementations

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T> Same<T> for T

type Output = T

Should always be Self