Struct windows::Devices::Sensors::SensorType
#[repr(transparent)]pub struct SensorType(pub i32);
Tuple Fields§
§0: i32
Implementations§
§impl SensorType
impl SensorType
pub const Accelerometer: Self = _
pub const ActivitySensor: Self = _
pub const Barometer: Self = _
pub const Compass: Self = _
pub const CustomSensor: Self = _
pub const Gyroscope: Self = _
pub const ProximitySensor: Self = _
pub const Inclinometer: Self = _
pub const LightSensor: Self = _
pub const OrientationSensor: Self = _
pub const Pedometer: Self = _
pub const RelativeInclinometer: Self = _
pub const RelativeOrientationSensor: Self = _
pub const SimpleOrientationSensor: Self = _
Trait Implementations§
§impl Clone for SensorType
impl Clone for SensorType
§fn clone(&self) -> SensorType
fn clone(&self) -> SensorType
Returns a copy 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 more§impl Debug for SensorType
impl Debug for SensorType
§impl Default for SensorType
impl Default for SensorType
§fn default() -> SensorType
fn default() -> SensorType
Returns the “default value” for a type. Read more
§impl PartialEq for SensorType
impl PartialEq for SensorType
§fn eq(&self, other: &SensorType) -> bool
fn eq(&self, other: &SensorType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SensorType
impl Eq for SensorType
impl StructuralPartialEq for SensorType
Auto Trait Implementations§
impl RefUnwindSafe for SensorType
impl Send for SensorType
impl Sync for SensorType
impl Unpin for SensorType
impl UnwindSafe for SensorType
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