[][src]Struct beryllium::KeyInfo

pub struct KeyInfo {
    pub scancode: Option<Scancode>,
    pub keycode: Option<Keycode>,
    pub modifiers: KeyModifiers,
}

Information

Fields

scancode: Option<Scancode>

The scancode (if any) is the physical key pressed.

keycode: Option<Keycode>

The keycode (if any) is the logical key pressed.

modifiers: KeyModifiers

The key modifiers that were active during this event.

Trait Implementations

impl From<SDL_Keysym> for KeyInfo[src]

impl PartialEq<KeyInfo> for KeyInfo[src]

impl Clone for KeyInfo[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for KeyInfo[src]

impl Eq for KeyInfo[src]

impl Copy for KeyInfo[src]

impl Debug for KeyInfo[src]

Auto Trait Implementations

impl Send for KeyInfo

impl Unpin for KeyInfo

impl Sync for KeyInfo

impl UnwindSafe for KeyInfo

impl RefUnwindSafe for KeyInfo

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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