Struct fermium::keycode::SDL_Keymod [−][src]
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]
#[must_use]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.
#[must_use]fn bitand(self, rhs: Self) -> Self::Output
[src]
impl BitAndAssign<SDL_Keymod> for SDL_Keymod
[src]
#[must_use]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.
#[must_use]fn bitor(self, rhs: Self) -> Self::Output
[src]
impl BitOrAssign<SDL_Keymod> for SDL_Keymod
[src]
#[must_use]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.
#[must_use]fn bitxor(self, rhs: Self) -> Self::Output
[src]
impl BitXorAssign<SDL_Keymod> for SDL_Keymod
[src]
#[must_use]fn bitxor_assign(&mut self, rhs: Self)
[src]
impl Clone for SDL_Keymod
[src]
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]
fn default() -> SDL_Keymod
[src]
impl Eq for SDL_Keymod
[src]
impl Hash for SDL_Keymod
[src]
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.
#[must_use]fn not(self) -> Self::Output
[src]
impl Ord for SDL_Keymod
[src]
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]
fn eq(&self, other: &SDL_Keymod) -> bool
[src]
fn ne(&self, other: &SDL_Keymod) -> bool
[src]
impl PartialOrd<SDL_Keymod> for SDL_Keymod
[src]
fn partial_cmp(&self, other: &SDL_Keymod) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[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>,