pub struct SpatialSensor<V> {
pub x: V,
pub y: V,
pub z: V,
}Expand description
Models the readings from a 3d spatial sensor (accelerometer, gyro).
Fields§
§x: V§y: V§z: VImplementations§
Source§impl<V> SpatialSensor<V>
impl<V> SpatialSensor<V>
pub fn new(x: V, y: V, z: V) -> SpatialSensor<V>
Trait Implementations§
Source§impl<V: Clone> Clone for SpatialSensor<V>
impl<V: Clone> Clone for SpatialSensor<V>
Source§fn clone(&self) -> SpatialSensor<V>
fn clone(&self) -> SpatialSensor<V>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<V: Copy> Copy for SpatialSensor<V>
Source§impl<V: Debug> Debug for SpatialSensor<V>
impl<V: Debug> Debug for SpatialSensor<V>
Source§impl<V: Default> Default for SpatialSensor<V>
impl<V: Default> Default for SpatialSensor<V>
Source§fn default() -> SpatialSensor<V>
fn default() -> SpatialSensor<V>
Returns the “default value” for a type. Read more
impl<V: Eq> Eq for SpatialSensor<V>
Source§impl<V: Hash> Hash for SpatialSensor<V>
impl<V: Hash> Hash for SpatialSensor<V>
Source§impl<V: PartialEq> PartialEq for SpatialSensor<V>
impl<V: PartialEq> PartialEq for SpatialSensor<V>
Source§fn eq(&self, other: &SpatialSensor<V>) -> bool
fn eq(&self, other: &SpatialSensor<V>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<V> StructuralPartialEq for SpatialSensor<V>
Auto Trait Implementations§
impl<V> Freeze for SpatialSensor<V>where
V: Freeze,
impl<V> RefUnwindSafe for SpatialSensor<V>where
V: RefUnwindSafe,
impl<V> Send for SpatialSensor<V>where
V: Send,
impl<V> Sync for SpatialSensor<V>where
V: Sync,
impl<V> Unpin for SpatialSensor<V>where
V: Unpin,
impl<V> UnsafeUnpin for SpatialSensor<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for SpatialSensor<V>where
V: UnwindSafe,
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