[][src]Struct fermium::keycode::SDL_Keymod

#[repr(transparent)]pub struct SDL_Keymod(pub i32);

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.

impl BitAndAssign<SDL_Keymod> for SDL_Keymod[src]

impl BitOr<SDL_Keymod> for SDL_Keymod[src]

type Output = Self

The resulting type after applying the | operator.

impl BitOrAssign<SDL_Keymod> for SDL_Keymod[src]

impl BitXor<SDL_Keymod> for SDL_Keymod[src]

type Output = Self

The resulting type after applying the ^ operator.

impl BitXorAssign<SDL_Keymod> for SDL_Keymod[src]

impl Clone for SDL_Keymod[src]

impl Copy for SDL_Keymod[src]

impl Debug for SDL_Keymod[src]

impl Default for SDL_Keymod[src]

impl Eq for SDL_Keymod[src]

impl Hash for SDL_Keymod[src]

impl Not for SDL_Keymod[src]

type Output = Self

The resulting type after applying the ! operator.

impl Ord for SDL_Keymod[src]

impl PartialEq<SDL_Keymod> for SDL_Keymod[src]

impl PartialOrd<SDL_Keymod> for SDL_Keymod[src]

impl StructuralEq for SDL_Keymod[src]

impl StructuralPartialEq for SDL_Keymod[src]

Auto Trait Implementations

impl Send for SDL_Keymod

impl Sync for SDL_Keymod

impl Unpin for SDL_Keymod

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.