Enum sdl2_sys::SDL_SensorType
source · #[repr(i32)]pub enum SDL_SensorType {
SDL_SENSOR_INVALID = -1,
SDL_SENSOR_UNKNOWN = 0,
SDL_SENSOR_ACCEL = 1,
SDL_SENSOR_GYRO = 2,
}
Variants§
SDL_SENSOR_INVALID = -1
< Returned for an invalid sensor
SDL_SENSOR_UNKNOWN = 0
< Unknown sensor type
SDL_SENSOR_ACCEL = 1
< Accelerometer
SDL_SENSOR_GYRO = 2
< Gyroscope
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 Hash for SDL_SensorType
impl Hash for SDL_SensorType
source§impl PartialEq for SDL_SensorType
impl PartialEq for SDL_SensorType
impl Copy for SDL_SensorType
impl Eq for SDL_SensorType
impl StructuralPartialEq for SDL_SensorType
Auto Trait Implementations§
impl Freeze for SDL_SensorType
impl RefUnwindSafe for SDL_SensorType
impl Send for SDL_SensorType
impl Sync for SDL_SensorType
impl Unpin for SDL_SensorType
impl UnwindSafe for SDL_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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)