Struct fermium::keycode::SDL_Keymod
source · #[repr(transparent)]pub struct SDL_Keymod(pub i32);
Expand description
Representation of modifier key flags.
This is used in places like the SDL_Keysym
struct.
See all the constants named KMOD_*
Tuple Fields§
§0: i32
Implementations§
source§impl SDL_Keymod
impl SDL_Keymod
sourcepub const fn as_u16(self) -> u16
pub const fn as_u16(self) -> u16
Convenience function to downcast into u16
.
This is needed for easy interaction with the mod_
field of
SDL_Keysym
.
Trait Implementations§
source§impl BitAnd<SDL_Keymod> for SDL_Keymod
impl BitAnd<SDL_Keymod> for SDL_Keymod
source§impl BitAndAssign<SDL_Keymod> for SDL_Keymod
impl BitAndAssign<SDL_Keymod> for SDL_Keymod
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr<SDL_Keymod> for SDL_Keymod
impl BitOr<SDL_Keymod> for SDL_Keymod
source§impl BitOrAssign<SDL_Keymod> for SDL_Keymod
impl BitOrAssign<SDL_Keymod> for SDL_Keymod
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor<SDL_Keymod> for SDL_Keymod
impl BitXor<SDL_Keymod> for SDL_Keymod
source§impl BitXorAssign<SDL_Keymod> for SDL_Keymod
impl BitXorAssign<SDL_Keymod> for SDL_Keymod
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for SDL_Keymod
impl Clone for SDL_Keymod
source§fn clone(&self) -> SDL_Keymod
fn clone(&self) -> SDL_Keymod
Returns a copy 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_Keymod
impl Debug for SDL_Keymod
source§impl Default for SDL_Keymod
impl Default for SDL_Keymod
source§fn default() -> SDL_Keymod
fn default() -> SDL_Keymod
Returns the “default value” for a type. Read more
source§impl Hash for SDL_Keymod
impl Hash for SDL_Keymod
source§impl Not for SDL_Keymod
impl Not for SDL_Keymod
source§impl Ord for SDL_Keymod
impl Ord for SDL_Keymod
source§fn cmp(&self, other: &SDL_Keymod) -> Ordering
fn cmp(&self, other: &SDL_Keymod) -> 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_Keymod> for SDL_Keymod
impl PartialEq<SDL_Keymod> for SDL_Keymod
source§fn eq(&self, other: &SDL_Keymod) -> bool
fn eq(&self, other: &SDL_Keymod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SDL_Keymod> for SDL_Keymod
impl PartialOrd<SDL_Keymod> for SDL_Keymod
source§fn partial_cmp(&self, other: &SDL_Keymod) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_Keymod) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SDL_Keymod
impl Eq for SDL_Keymod
impl StructuralEq for SDL_Keymod
impl StructuralPartialEq for SDL_Keymod
Auto Trait Implementations§
impl RefUnwindSafe for SDL_Keymod
impl Send for SDL_Keymod
impl Sync for SDL_Keymod
impl Unpin for SDL_Keymod
impl UnwindSafe for SDL_Keymod
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