pub struct DeviceMotion(/* private fields */);Implementations§
Source§impl DeviceMotion
impl DeviceMotion
pub fn attitude(&self) -> &Attitude
pub fn rotation_rate(&self) -> RotationRate
pub fn gravity(&self) -> Acceleration
pub fn user_acceleration(&self) -> Acceleration
pub fn magnetic_field(&self) -> CalibratedMagneticField
pub fn heading(&self) -> f64
pub fn sensor_location(&self) -> DeviceMotionSensorLocation
Methods from Deref<Target = Id>§
pub unsafe fn value_for_key_throws_ar(&self, key: &String) -> Option<Rar<Self>>
pub unsafe fn value_for_key_throws(&self, key: &String) -> Option<R<Self>>
pub fn value_for_key<'ear>( &self, key: &String, ) -> ExResult<'ear, Option<R<Self>>>
pub unsafe fn set_value_for_key_throws( &mut self, val: Option<&Self>, key: &String, )
pub fn set_value_for_key<'ear>( &mut self, val: Option<&Self>, key: &String, ) -> ExResult<'ear>
pub unsafe fn value_for_key_path_throws_ar( &self, key_path: &String, ) -> Option<Rar<Self>>
pub unsafe fn value_for_key_path_throws( &self, key_path: &String, ) -> Option<R<Self>>
pub fn value_for_key_path<'ear>( &self, key_path: &String, ) -> ExResult<'ear, Option<R<Self>>>
pub unsafe fn set_value_for_key_path_throws( &mut self, val: Option<&Self>, key_path: &String, )
pub fn set_value_for_key_path<'ear>( &mut self, val: Option<&Self>, key_path: &String, ) -> ExResult<'ear>
pub fn as_type_ref(&self) -> &Type
pub fn as_id_ref(&self) -> &Self
pub fn is_equal(&self, other: &Self) -> bool
pub fn hash(&self) -> UInteger
pub fn as_ptr(&self) -> *const Self
Trait Implementations§
Source§impl AsRef<Id> for DeviceMotion
impl AsRef<Id> for DeviceMotion
Source§impl Debug for DeviceMotion
impl Debug for DeviceMotion
Source§impl Deref for DeviceMotion
impl Deref for DeviceMotion
Source§impl DerefMut for DeviceMotion
impl DerefMut for DeviceMotion
Source§impl Obj for DeviceMotion
impl Obj for DeviceMotion
unsafe fn retain(id: &Self) -> R<Self>
unsafe fn release(id: &mut Self)
fn desc_ar(&self) -> Rar<String>
fn desc(&self) -> R<String>
fn debug_desc_ar(&self) -> Rar<String>
fn debug_desc(&self) -> R<String>
fn responds_to_sel(&self, sel: &Sel) -> bool
fn class(&self) -> &Class<Self>
fn is_kind_of_class<T: Obj>(&self, cls: &Class<T>) -> bool
fn try_cast<T: Obj>(&self, cls: &Class<T>) -> Option<&T>
fn try_cast_mut<T: Obj>(&mut self, cls: &Class<T>) -> Option<&mut T>
fn is_member_of_class<T: Obj>(&self, cls: &Class<T>) -> bool
fn is_tagged_ptr(&self) -> bool
fn as_id_ref(&self) -> &Id
Source§impl PartialEq for DeviceMotion
impl PartialEq for DeviceMotion
Source§fn eq(&self, other: &DeviceMotion) -> bool
fn eq(&self, other: &DeviceMotion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<Retained<DeviceMotion>> for DeviceMotion
impl PartialEq<Retained<DeviceMotion>> for DeviceMotion
impl StructuralPartialEq for DeviceMotion
Auto Trait Implementations§
impl !Sync for DeviceMotion
impl Freeze for DeviceMotion
impl RefUnwindSafe for DeviceMotion
impl Send for DeviceMotion
impl Unpin for DeviceMotion
impl UnsafeUnpin for DeviceMotion
impl UnwindSafe for DeviceMotion
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