[−][src]Struct fermium::keycode::SDL_Keymod
Representation of modifier key flags.
This is used in places like the [SDL_Keysym
] struct.
See all the constants named KMOD_*
Implementations
impl SDL_Keymod
[src]
pub const fn as_u16(self) -> u16
[src]
Convenience function to downcast into u16
.
This is needed for easy interaction with the mod_
field of
[SDL_Keysym
].
Trait Implementations
impl BitAnd<SDL_Keymod> for SDL_Keymod
[src]
type Output = Self
The resulting type after applying the &
operator.
pub fn bitand(self, rhs: Self) -> Self::Output
[src]
impl BitAndAssign<SDL_Keymod> for SDL_Keymod
[src]
pub fn bitand_assign(&mut self, rhs: Self)
[src]
impl BitOr<SDL_Keymod> for SDL_Keymod
[src]
type Output = Self
The resulting type after applying the |
operator.
pub fn bitor(self, rhs: Self) -> Self::Output
[src]
impl BitOrAssign<SDL_Keymod> for SDL_Keymod
[src]
pub fn bitor_assign(&mut self, rhs: Self)
[src]
impl BitXor<SDL_Keymod> for SDL_Keymod
[src]
type Output = Self
The resulting type after applying the ^
operator.
pub fn bitxor(self, rhs: Self) -> Self::Output
[src]
impl BitXorAssign<SDL_Keymod> for SDL_Keymod
[src]
pub fn bitxor_assign(&mut self, rhs: Self)
[src]
impl Clone for SDL_Keymod
[src]
pub fn clone(&self) -> SDL_Keymod
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SDL_Keymod
[src]
impl Debug for SDL_Keymod
[src]
impl Default for SDL_Keymod
[src]
pub fn default() -> SDL_Keymod
[src]
impl Eq for SDL_Keymod
[src]
impl Hash for SDL_Keymod
[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 Not for SDL_Keymod
[src]
type Output = Self
The resulting type after applying the !
operator.
pub fn not(self) -> Self::Output
[src]
impl Ord for SDL_Keymod
[src]
pub fn cmp(&self, other: &SDL_Keymod) -> 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_Keymod> for SDL_Keymod
[src]
pub fn eq(&self, other: &SDL_Keymod) -> bool
[src]
pub fn ne(&self, other: &SDL_Keymod) -> bool
[src]
impl PartialOrd<SDL_Keymod> for SDL_Keymod
[src]
pub fn partial_cmp(&self, other: &SDL_Keymod) -> Option<Ordering>
[src]
pub fn lt(&self, other: &SDL_Keymod) -> bool
[src]
pub fn le(&self, other: &SDL_Keymod) -> bool
[src]
pub fn gt(&self, other: &SDL_Keymod) -> bool
[src]
pub fn ge(&self, other: &SDL_Keymod) -> bool
[src]
impl StructuralEq for SDL_Keymod
[src]
impl StructuralPartialEq for SDL_Keymod
[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>,