#[repr(C)]pub struct ASensorVector {
pub _bindgen_data_1_: [u32; 3],
pub status: u8,
pub reserved: [u8; 3],
}
Expand description
A sensor event.
Fields§
§_bindgen_data_1_: [u32; 3]
§status: u8
§reserved: [u8; 3]
Implementations§
Source§impl ASensorVector
impl ASensorVector
pub unsafe fn v(&self) -> *const [c_float; 3]
pub unsafe fn x(&self) -> *const c_float
pub unsafe fn y(&self) -> *const c_float
pub unsafe fn z(&self) -> *const c_float
pub unsafe fn azimuth(&self) -> *const c_float
pub unsafe fn pitch(&self) -> *const c_float
pub unsafe fn roll(&self) -> *const c_float
pub unsafe fn mut_v(&mut self) -> *mut [c_float; 3]
pub unsafe fn mut_x(&mut self) -> *mut c_float
pub unsafe fn mut_y(&mut self) -> *mut c_float
pub unsafe fn mut_z(&mut self) -> *mut c_float
pub unsafe fn mut_azimuth(&mut self) -> *mut c_float
pub unsafe fn mut_pitch(&mut self) -> *mut c_float
pub unsafe fn mut_roll(&mut self) -> *mut c_float
Trait Implementations§
Source§impl Clone for ASensorVector
impl Clone for ASensorVector
Source§impl Default for ASensorVector
impl Default for ASensorVector
impl Copy for ASensorVector
Auto Trait Implementations§
impl Freeze for ASensorVector
impl RefUnwindSafe for ASensorVector
impl Send for ASensorVector
impl Sync for ASensorVector
impl Unpin for ASensorVector
impl UnwindSafe for ASensorVector
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