[−][src]Struct fermium::keycode::SDL_Keycode
The SDL keyboard keycode representation.
This is used in places like the [SDL_Keysym
] struct for the "software" /
"logical" designation of a key.
Values of this type are used to represent keyboard keys using the current layout of the keyboard. These values include Unicode values representing the unmodified character that would be generated by pressing the key, or an SDLK_* constant for those keys that do not generate characters.
A special exception is the number keys at the top of the keyboard which
always map to SDLK_0
through SDLK_9
, regardless of layout.
See all the constants named SDLK_*
Trait Implementations
impl Clone for SDL_Keycode
[src]
pub fn clone(&self) -> SDL_Keycode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SDL_Keycode
[src]
impl Debug for SDL_Keycode
[src]
impl Default for SDL_Keycode
[src]
pub fn default() -> SDL_Keycode
[src]
impl Eq for SDL_Keycode
[src]
impl Hash for SDL_Keycode
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for SDL_Keycode
[src]
pub fn cmp(&self, other: &SDL_Keycode) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<SDL_Keycode> for SDL_Keycode
[src]
pub fn eq(&self, other: &SDL_Keycode) -> bool
[src]
pub fn ne(&self, other: &SDL_Keycode) -> bool
[src]
impl PartialOrd<SDL_Keycode> for SDL_Keycode
[src]
pub fn partial_cmp(&self, other: &SDL_Keycode) -> Option<Ordering>
[src]
pub fn lt(&self, other: &SDL_Keycode) -> bool
[src]
pub fn le(&self, other: &SDL_Keycode) -> bool
[src]
pub fn gt(&self, other: &SDL_Keycode) -> bool
[src]
pub fn ge(&self, other: &SDL_Keycode) -> bool
[src]
impl StructuralEq for SDL_Keycode
[src]
impl StructuralPartialEq for SDL_Keycode
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,