Struct fermium::sensor::SDL_SensorType
source · #[repr(transparent)]pub struct SDL_SensorType(pub i32);
Expand description
The different sensors defined by SDL
Additional sensors may be available, using platform-dependent semantics.
Hare are the additional Android sensors: https://developer.android.com/reference/android/hardware/SensorEvent.html#values
Tuple Fields§
§0: i32
Trait Implementations§
source§impl Clone for SDL_SensorType
impl Clone for SDL_SensorType
source§fn clone(&self) -> SDL_SensorType
fn clone(&self) -> SDL_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 moresource§impl Debug for SDL_SensorType
impl Debug for SDL_SensorType
source§impl Default for SDL_SensorType
impl Default for SDL_SensorType
source§fn default() -> SDL_SensorType
fn default() -> SDL_SensorType
Returns the “default value” for a type. Read more
source§impl Hash for SDL_SensorType
impl Hash for SDL_SensorType
source§impl Ord for SDL_SensorType
impl Ord for SDL_SensorType
source§fn cmp(&self, other: &SDL_SensorType) -> Ordering
fn cmp(&self, other: &SDL_SensorType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SDL_SensorType> for SDL_SensorType
impl PartialEq<SDL_SensorType> for SDL_SensorType
source§fn eq(&self, other: &SDL_SensorType) -> bool
fn eq(&self, other: &SDL_SensorType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SDL_SensorType> for SDL_SensorType
impl PartialOrd<SDL_SensorType> for SDL_SensorType
source§fn partial_cmp(&self, other: &SDL_SensorType) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_SensorType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more