pub struct SensorSample {
pub kind: SensorKind,
pub data: [f32; 3],
}Expand description
One reading from a motion sensor, in the device frame.
Fields§
§kind: SensorKind§data: [f32; 3][x, y, z], scaled per SensorKind.
Implementations§
Trait Implementations§
Source§impl Clone for SensorSample
impl Clone for SensorSample
impl Copy for SensorSample
Source§impl Debug for SensorSample
impl Debug for SensorSample
Source§impl PartialEq for SensorSample
impl PartialEq for SensorSample
impl StructuralPartialEq for SensorSample
Auto Trait Implementations§
impl Freeze for SensorSample
impl RefUnwindSafe for SensorSample
impl Send for SensorSample
impl Sync for SensorSample
impl Unpin for SensorSample
impl UnsafeUnpin for SensorSample
impl UnwindSafe for SensorSample
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