Struct ctru::services::hid::Acceleration
source · pub struct Acceleration { /* private fields */ }
Expand description
Representation of the acceleration vector read by the accelerometer.
Have a look at Hid::set_accelerometer()
for more information.
Trait Implementations§
source§impl Clone for Acceleration
impl Clone for Acceleration
source§fn clone(&self) -> Acceleration
fn clone(&self) -> Acceleration
Returns a copy of the value. Read more
1.0.0§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
source§impl Default for Acceleration
impl Default for Acceleration
source§fn default() -> Acceleration
fn default() -> Acceleration
Returns the “default value” for a type. Read more
source§impl From<Acceleration> for (i16, i16, i16)
impl From<Acceleration> for (i16, i16, i16)
source§fn from(value: Acceleration) -> (i16, i16, i16)
fn from(value: Acceleration) -> (i16, i16, i16)
Converts to this type from the input type.
source§impl PartialEq for Acceleration
impl PartialEq for Acceleration
impl Copy for Acceleration
impl Eq for Acceleration
impl StructuralPartialEq for Acceleration
Auto Trait Implementations§
impl RefUnwindSafe for Acceleration
impl Send for Acceleration
impl Sync for Acceleration
impl Unpin for Acceleration
impl UnwindSafe for Acceleration
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more