pub struct Acceleration {
pub x: i16,
pub y: i16,
pub z: i16,
}Fields§
§x: i16§y: i16§z: i16Implementations§
Source§impl Acceleration
impl Acceleration
Sourcepub fn from_report(r: &[u8]) -> Self
pub fn from_report(r: &[u8]) -> Self
Parse acceleration from report format
Trait Implementations§
Source§impl Clone for Acceleration
impl Clone for Acceleration
Source§fn clone(&self) -> Acceleration
fn clone(&self) -> Acceleration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Acceleration
impl Debug for Acceleration
impl Copy for Acceleration
Auto Trait Implementations§
impl Freeze for Acceleration
impl RefUnwindSafe for Acceleration
impl Send for Acceleration
impl Sync for Acceleration
impl Unpin for Acceleration
impl UnwindSafe for Acceleration
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