#[repr(transparent)]pub struct SDL_GameControllerType(pub i32);Expand description
A game controller’s type, sorted by console.
See SDL_CONTROLLER_TYPE_*
Tuple Fields§
§0: i32Trait Implementations§
Source§impl Clone for SDL_GameControllerType
impl Clone for SDL_GameControllerType
Source§fn clone(&self) -> SDL_GameControllerType
fn clone(&self) -> SDL_GameControllerType
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_GameControllerType
impl Debug for SDL_GameControllerType
Source§impl Default for SDL_GameControllerType
impl Default for SDL_GameControllerType
Source§fn default() -> SDL_GameControllerType
fn default() -> SDL_GameControllerType
Returns the “default value” for a type. Read more
Source§impl Hash for SDL_GameControllerType
impl Hash for SDL_GameControllerType
Source§impl Ord for SDL_GameControllerType
impl Ord for SDL_GameControllerType
Source§fn cmp(&self, other: &SDL_GameControllerType) -> Ordering
fn cmp(&self, other: &SDL_GameControllerType) -> 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_GameControllerType
impl PartialEq for SDL_GameControllerType
Source§fn eq(&self, other: &SDL_GameControllerType) -> bool
fn eq(&self, other: &SDL_GameControllerType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SDL_GameControllerType
impl PartialOrd for SDL_GameControllerType
impl Copy for SDL_GameControllerType
impl Eq for SDL_GameControllerType
impl StructuralPartialEq for SDL_GameControllerType
Auto Trait Implementations§
impl Freeze for SDL_GameControllerType
impl RefUnwindSafe for SDL_GameControllerType
impl Send for SDL_GameControllerType
impl Sync for SDL_GameControllerType
impl Unpin for SDL_GameControllerType
impl UnsafeUnpin for SDL_GameControllerType
impl UnwindSafe for SDL_GameControllerType
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