#[repr(transparent)]pub struct SDL_MouseID(pub Uint32);Expand description
This is a unique ID for a mouse for the time it is connected to the system, and is never reused for the lifetime of the application.
If the mouse 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_MouseID
impl Clone for SDL_MouseID
Source§fn clone(&self) -> SDL_MouseID
fn clone(&self) -> SDL_MouseID
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_MouseID
impl Debug for SDL_MouseID
Source§impl Default for SDL_MouseID
impl Default for SDL_MouseID
Source§fn default() -> SDL_MouseID
fn default() -> SDL_MouseID
Returns the “default value” for a type. Read more
Source§impl From<SDL_MouseID> for Uint32
impl From<SDL_MouseID> for Uint32
Source§fn from(value: SDL_MouseID) -> Self
fn from(value: SDL_MouseID) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_MouseID
Available on crate feature metadata only.
impl GroupMetadata for SDL_MouseID
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_MouseID
impl Hash for SDL_MouseID
Source§impl Ord for SDL_MouseID
impl Ord for SDL_MouseID
Source§fn cmp(&self, other: &SDL_MouseID) -> Ordering
fn cmp(&self, other: &SDL_MouseID) -> 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_MouseID> for Uint32
impl PartialEq<SDL_MouseID> for Uint32
Source§impl PartialEq<u32> for SDL_MouseID
impl PartialEq<u32> for SDL_MouseID
Source§impl PartialEq for SDL_MouseID
impl PartialEq for SDL_MouseID
Source§impl PartialOrd for SDL_MouseID
impl PartialOrd for SDL_MouseID
impl Copy for SDL_MouseID
impl Eq for SDL_MouseID
impl StructuralPartialEq for SDL_MouseID
Auto Trait Implementations§
impl Freeze for SDL_MouseID
impl RefUnwindSafe for SDL_MouseID
impl Send for SDL_MouseID
impl Sync for SDL_MouseID
impl Unpin for SDL_MouseID
impl UnwindSafe for SDL_MouseID
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