pub struct I16x3 {
pub x: i16,
pub y: i16,
pub z: i16,
}
Expand description
3-dimensional XYZ vector of i16
values
Fields§
§x: i16
X component
y: i16
Y component
z: i16
Z component
Implementations§
Trait Implementations§
source§impl MulAssign<f32> for I16x3
impl MulAssign<f32> for I16x3
source§fn mul_assign(&mut self, n: f32)
fn mul_assign(&mut self, n: f32)
Performs the
*=
operation. Read moresource§impl PartialEq for I16x3
impl PartialEq for I16x3
source§impl<I2C, E> RawAccelerometer<I16x3> for Lis2dh12<I2C>
impl<I2C, E> RawAccelerometer<I16x3> for Lis2dh12<I2C>
source§impl Vector for I16x3
impl Vector for I16x3
source§fn get(self, i: usize) -> Option<<I16x3 as Vector>::Component>
fn get(self, i: usize) -> Option<<I16x3 as Vector>::Component>
Get the component value for a particular index
source§fn to_array(self) -> GenericArray<i16, UInt<UInt<UTerm, B1>, B1>>
fn to_array(self) -> GenericArray<i16, UInt<UInt<UTerm, B1>, B1>>
Obtain an array of the acceleration components for each of the axes
source§fn from_slice(slice: &[Self::Component]) -> Self
fn from_slice(slice: &[Self::Component]) -> Self
Instantiate a vector from a slice of components. Read more
impl Copy for I16x3
impl StructuralPartialEq for I16x3
Auto Trait Implementations§
impl RefUnwindSafe for I16x3
impl Send for I16x3
impl Sync for I16x3
impl Unpin for I16x3
impl UnwindSafe for I16x3
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more