[][src]Enum ndless_sdl::event::Key

pub enum Key {
    Unknown,
    Backspace,
    Tab,
    Clear,
    Return,
    Pause,
    Escape,
    Space,
    Exclaim,
    Quotedbl,
    Hash,
    Dollar,
    Ampersand,
    Quote,
    LeftParen,
    RightParen,
    Asterisk,
    Plus,
    Comma,
    Minus,
    Period,
    Slash,
    Num0,
    Num1,
    Num2,
    Num3,
    Num4,
    Num5,
    Num6,
    Num7,
    Num8,
    Num9,
    Colon,
    Semicolon,
    Less,
    Equals,
    Greater,
    Question,
    At,
    LeftBracket,
    Backslash,
    RightBracket,
    Caret,
    Underscore,
    Backquote,
    A,
    B,
    C,
    D,
    E,
    F,
    G,
    H,
    I,
    J,
    K,
    L,
    M,
    N,
    O,
    P,
    Q,
    R,
    S,
    T,
    U,
    V,
    W,
    X,
    Y,
    Z,
    Delete,
    World0,
    World1,
    World2,
    World3,
    World4,
    World5,
    World6,
    World7,
    World8,
    World9,
    World10,
    World11,
    World12,
    World13,
    World14,
    World15,
    World16,
    World17,
    World18,
    World19,
    World20,
    World21,
    World22,
    World23,
    World24,
    World25,
    World26,
    World27,
    World28,
    World29,
    World30,
    World31,
    World32,
    World33,
    World34,
    World35,
    World36,
    World37,
    World38,
    World39,
    World40,
    World41,
    World42,
    World43,
    World44,
    World45,
    World46,
    World47,
    World48,
    World49,
    World50,
    World51,
    World52,
    World53,
    World54,
    World55,
    World56,
    World57,
    World58,
    World59,
    World60,
    World61,
    World62,
    World63,
    World64,
    World65,
    World66,
    World67,
    World68,
    World69,
    World70,
    World71,
    World72,
    World73,
    World74,
    World75,
    World76,
    World77,
    World78,
    World79,
    World80,
    World81,
    World82,
    World83,
    World84,
    World85,
    World86,
    World87,
    World88,
    World89,
    World90,
    World91,
    World92,
    World93,
    World94,
    World95,
    Kp0,
    Kp1,
    Kp2,
    Kp3,
    Kp4,
    Kp5,
    Kp6,
    Kp7,
    Kp8,
    Kp9,
    KpPeriod,
    KpDivide,
    KpMultiply,
    KpMinus,
    KpPlus,
    KpEnter,
    KpEquals,
    Up,
    Down,
    Right,
    Left,
    Insert,
    Home,
    End,
    PageUp,
    PageDown,
    F1,
    F2,
    F3,
    F4,
    F5,
    F6,
    F7,
    F8,
    F9,
    F10,
    F11,
    F12,
    F13,
    F14,
    F15,
    NumLock,
    CapsLock,
    ScrolLock,
    RShift,
    LShift,
    RCtrl,
    LCtrl,
    RAlt,
    LAlt,
    RMeta,
    LMeta,
    LSuper,
    RSuper,
    Mode,
    Compose,
    Help,
    Print,
    SysReq,
    Break,
    Menu,
    Power,
    Euro,
    Undo,
    Last,
}

Variants

UnknownBackspaceTabClearReturnPauseEscapeSpaceExclaimQuotedblHashDollarAmpersandQuoteLeftParenRightParenAsteriskPlusCommaMinusPeriodSlashNum0Num1Num2Num3Num4Num5Num6Num7Num8Num9ColonSemicolonLessEqualsGreaterQuestionAtLeftBracketBackslashRightBracketCaretUnderscoreBackquoteABCDEFGHIJKLMNOPQRSTUVWXYZDeleteWorld0World1World2World3World4World5World6World7World8World9World10World11World12World13World14World15World16World17World18World19World20World21World22World23World24World25World26World27World28World29World30World31World32World33World34World35World36World37World38World39World40World41World42World43World44World45World46World47World48World49World50World51World52World53World54World55World56World57World58World59World60World61World62World63World64World65World66World67World68World69World70World71World72World73World74World75World76World77World78World79World80World81World82World83World84World85World86World87World88World89World90World91World92World93World94World95Kp0Kp1Kp2Kp3Kp4Kp5Kp6Kp7Kp8Kp9KpPeriodKpDivideKpMultiplyKpMinusKpPlusKpEnterKpEqualsUpDownRightLeftInsertHomeEndPageUpPageDownF1F2F3F4F5F6F7F8F9F10F11F12F13F14F15NumLockCapsLockScrolLockRShiftLShiftRCtrlLCtrlRAltLAltRMetaLMetaLSuperRSuperModeComposeHelpPrintSysReqBreakMenuPowerEuroUndoLast

Trait Implementations

impl Clone for Key[src]

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

Performs copy-assignment from source. Read more

impl Debug for Key[src]

impl PartialEq<Key> for Key[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Eq for Key[src]

impl Ord for Key[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd<Key> for Key[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Copy for Key[src]

impl FromPrimitive for Key[src]

fn from_isize(n: isize) -> Option<Self>[src]

Convert an isize to return an optional value of this type. If the value cannot be represented by this value, then None is returned. Read more

fn from_i8(n: i8) -> Option<Self>[src]

Convert an i8 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

fn from_i16(n: i16) -> Option<Self>[src]

Convert an i16 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

fn from_i32(n: i32) -> Option<Self>[src]

Convert an i32 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

fn from_i128(n: i128) -> Option<Self>[src]

Convert an i128 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

fn from_usize(n: usize) -> Option<Self>[src]

Convert a usize to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

fn from_u8(n: u8) -> Option<Self>[src]

Convert an u8 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

fn from_u16(n: u16) -> Option<Self>[src]

Convert an u16 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

fn from_u32(n: u32) -> Option<Self>[src]

Convert an u32 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

fn from_u128(n: u128) -> Option<Self>[src]

Convert an u128 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

fn from_f32(n: f32) -> Option<Self>[src]

Convert a f32 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

fn from_f64(n: f64) -> Option<Self>[src]

Convert a f64 to return an optional value of this type. If the type cannot be represented by this value, then None is returned. Read more

Auto Trait Implementations

impl Send for Key

impl Sync for Key

Blanket Implementations

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

type Owned = T