Enum sdl2_sys::SDL_SensorType
source · #[repr(i32)]
pub enum SDL_SensorType {
SDL_SENSOR_INVALID,
SDL_SENSOR_UNKNOWN,
SDL_SENSOR_ACCEL,
SDL_SENSOR_GYRO,
}Variants
SDL_SENSOR_INVALID
< Returned for an invalid sensor
SDL_SENSOR_UNKNOWN
< Unknown sensor type
SDL_SENSOR_ACCEL
< Accelerometer
SDL_SENSOR_GYRO
< Gyroscope
Trait Implementations
sourceimpl Clone for SDL_SensorType
impl Clone for SDL_SensorType
sourcefn clone(&self) -> SDL_SensorType
fn clone(&self) -> SDL_SensorType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SDL_SensorType
impl Debug for SDL_SensorType
sourceimpl Hash for SDL_SensorType
impl Hash for SDL_SensorType
sourceimpl PartialEq<SDL_SensorType> for SDL_SensorType
impl PartialEq<SDL_SensorType> for SDL_SensorType
sourcefn eq(&self, other: &SDL_SensorType) -> bool
fn eq(&self, other: &SDL_SensorType) -> bool
impl Copy for SDL_SensorType
impl Eq for SDL_SensorType
impl StructuralEq for SDL_SensorType
impl StructuralPartialEq for SDL_SensorType
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more