[−][src]Struct accelerometer::vector::U8x2
2-dimensional XY vector of u8
values
Fields
x: u8
X component
y: u8
Y component
Implementations
impl U8x2
[src]
Trait Implementations
impl Clone for U8x2
[src]
fn clone(&self) -> U8x2
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for U8x2
[src]
impl Debug for U8x2
[src]
impl Default for U8x2
[src]
impl From<(u8, u8)> for U8x2
[src]
impl From<U8x2> for F32x2
[src]
impl Index<usize> for U8x2
[src]
impl MulAssign<f32> for U8x2
[src]
fn mul_assign(&mut self, n: f32)
[src]
impl MulAssign<u8> for U8x2
[src]
fn mul_assign(&mut self, n: u8)
[src]
impl PartialEq<U8x2> for U8x2
[src]
impl StructuralPartialEq for U8x2
[src]
impl Vector for U8x2
[src]
type Component = u8
Type representing measured acceleration for a particular axis
type Axes = UInt<UInt<UTerm, B1>, B0>
Number of axes
const MIN: u8
[src]
const MAX: u8
[src]
fn from_iter<I>(into_iter: I) -> U8x2 where
I: IntoIterator<Item = <U8x2 as Vector>::Component>,
[src]
I: IntoIterator<Item = <U8x2 as Vector>::Component>,
fn get(self, i: usize) -> Option<<U8x2 as Vector>::Component>
[src]
fn to_array(self) -> GenericArray<u8, UInt<UInt<UTerm, B1>, B0>>
[src]
fn from_slice(slice: &[Self::Component]) -> Self
[src]
fn iter(&self) -> Iter<Self>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, A, C> VectorExt for V where
A: ArrayLength<C>,
C: Component + Into<f32>,
V: Vector<Axes = A, Component = C> + MulAssign<f32>,
[src]
A: ArrayLength<C>,
C: Component + Into<f32>,
V: Vector<Axes = A, Component = C> + MulAssign<f32>,