#[repr(transparent)]pub struct SDL_SensorID(pub i32);Expand description
This is a unique ID for a sensor for the time it is connected to the system.
It is never reused for the lifetime of the application.
The ID value starts at 0 and increments from there. The value -1 is an invalid ID.
Tuple Fields§
§0: i32Trait Implementations§
Source§impl Clone for SDL_SensorID
impl Clone for SDL_SensorID
Source§fn clone(&self) -> SDL_SensorID
fn clone(&self) -> SDL_SensorID
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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_SensorID
impl Debug for SDL_SensorID
Source§impl Default for SDL_SensorID
impl Default for SDL_SensorID
Source§fn default() -> SDL_SensorID
fn default() -> SDL_SensorID
Returns the “default value” for a type. Read more
Source§impl Hash for SDL_SensorID
impl Hash for SDL_SensorID
Source§impl Ord for SDL_SensorID
impl Ord for SDL_SensorID
Source§fn cmp(&self, other: &SDL_SensorID) -> Ordering
fn cmp(&self, other: &SDL_SensorID) -> Ordering
1.21.0 (const: unstable) · 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 for SDL_SensorID
impl PartialEq for SDL_SensorID
Source§fn eq(&self, other: &SDL_SensorID) -> bool
fn eq(&self, other: &SDL_SensorID) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SDL_SensorID
impl PartialOrd for SDL_SensorID
impl Copy for SDL_SensorID
impl Eq for SDL_SensorID
impl StructuralPartialEq for SDL_SensorID
Auto Trait Implementations§
impl Freeze for SDL_SensorID
impl RefUnwindSafe for SDL_SensorID
impl Send for SDL_SensorID
impl Sync for SDL_SensorID
impl Unpin for SDL_SensorID
impl UnsafeUnpin for SDL_SensorID
impl UnwindSafe for SDL_SensorID
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