#[repr(transparent)]pub struct SDL_HapticID(pub Uint32);Expand description
This is a unique ID for a haptic device for the time it is connected to the system, and is never reused for the lifetime of the application.
If the haptic device is disconnected and reconnected, it will get a new ID.
The value 0 is an invalid ID.
§Availability
This datatype is available since SDL 3.2.0.
Tuple Fields§
§0: Uint32Trait Implementations§
Source§impl Clone for SDL_HapticID
impl Clone for SDL_HapticID
Source§fn clone(&self) -> SDL_HapticID
fn clone(&self) -> SDL_HapticID
Returns a duplicate 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_HapticID
impl Debug for SDL_HapticID
Source§impl Default for SDL_HapticID
impl Default for SDL_HapticID
Source§fn default() -> SDL_HapticID
fn default() -> SDL_HapticID
Returns the “default value” for a type. Read more
Source§impl From<SDL_HapticID> for Uint32
impl From<SDL_HapticID> for Uint32
Source§fn from(value: SDL_HapticID) -> Self
fn from(value: SDL_HapticID) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_HapticID
Available on crate feature metadata only.
impl GroupMetadata for SDL_HapticID
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_HapticID
impl Hash for SDL_HapticID
Source§impl Ord for SDL_HapticID
impl Ord for SDL_HapticID
Source§fn cmp(&self, other: &SDL_HapticID) -> Ordering
fn cmp(&self, other: &SDL_HapticID) -> 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_HapticID> for Uint32
impl PartialEq<SDL_HapticID> for Uint32
Source§impl PartialEq<u32> for SDL_HapticID
impl PartialEq<u32> for SDL_HapticID
Source§impl PartialEq for SDL_HapticID
impl PartialEq for SDL_HapticID
Source§impl PartialOrd for SDL_HapticID
impl PartialOrd for SDL_HapticID
impl Copy for SDL_HapticID
impl Eq for SDL_HapticID
impl StructuralPartialEq for SDL_HapticID
Auto Trait Implementations§
impl Freeze for SDL_HapticID
impl RefUnwindSafe for SDL_HapticID
impl Send for SDL_HapticID
impl Sync for SDL_HapticID
impl Unpin for SDL_HapticID
impl UnwindSafe for SDL_HapticID
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