Enum xplr::input::Key[][src]

pub enum Key {
Show variants F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, Num0, Num1, Num2, Num3, Num4, Num5, Num6, Num7, Num8, Num9, AltNum0, AltNum1, AltNum2, AltNum3, AltNum4, AltNum5, AltNum6, AltNum7, AltNum8, AltNum9, Backspace, Left, Right, Up, Down, Home, End, PageUp, PageDown, BackTab, Delete, Insert, Enter, Space, Tab, Esc, 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, CtrlA, CtrlB, CtrlC, CtrlD, CtrlE, CtrlF, CtrlG, CtrlH, CtrlI, CtrlJ, CtrlK, CtrlL, CtrlM, CtrlN, CtrlO, CtrlP, CtrlQ, CtrlR, CtrlS, CtrlT, CtrlU, CtrlV, CtrlW, CtrlX, CtrlY, CtrlZ, AltA, AltB, AltC, AltD, AltE, AltF, AltG, AltH, AltI, AltJ, AltK, AltL, AltM, AltN, AltO, AltP, AltQ, AltR, AltS, AltT, AltU, AltV, AltW, AltX, AltY, AltZ, ShiftA, ShiftB, ShiftC, ShiftD, ShiftE, ShiftF, ShiftG, ShiftH, ShiftI, ShiftJ, ShiftK, ShiftL, ShiftM, ShiftN, ShiftO, ShiftP, ShiftQ, ShiftR, ShiftS, ShiftT, ShiftU, ShiftV, ShiftW, ShiftX, ShiftY, ShiftZ, Special(char), NotSupported,
}

Variants

F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
Num0
Num1
Num2
Num3
Num4
Num5
Num6
Num7
Num8
Num9
AltNum0
AltNum1
AltNum2
AltNum3
AltNum4
AltNum5
AltNum6
AltNum7
AltNum8
AltNum9
Backspace
Left
Right
Up
Down
Home
End
PageUp
PageDown
BackTab
Delete
Insert
Enter
Space
Tab
Esc
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
CtrlA
CtrlB
CtrlC
CtrlD
CtrlE
CtrlF
CtrlG
CtrlH
CtrlI
CtrlJ
CtrlK
CtrlL
CtrlM
CtrlN
CtrlO
CtrlP
CtrlQ
CtrlR
CtrlS
CtrlT
CtrlU
CtrlV
CtrlW
CtrlX
CtrlY
CtrlZ
AltA
AltB
AltC
AltD
AltE
AltF
AltG
AltH
AltI
AltJ
AltK
AltL
AltM
AltN
AltO
AltP
AltQ
AltR
AltS
AltT
AltU
AltV
AltW
AltX
AltY
AltZ
ShiftA
ShiftB
ShiftC
ShiftD
ShiftE
ShiftF
ShiftG
ShiftH
ShiftI
ShiftJ
ShiftK
ShiftL
ShiftM
ShiftN
ShiftO
ShiftP
ShiftQ
ShiftR
ShiftS
ShiftT
ShiftU
ShiftV
ShiftW
ShiftX
ShiftY
ShiftZ
Special(char)
NotSupported

Implementations

impl Key[src]

pub fn from_event(key: KeyEvent) -> Self[src]

pub fn is_alphabet(&self) -> bool[src]

pub fn is_number(&self) -> bool[src]

pub fn is_special_character(&self) -> bool[src]

pub fn to_char(&self) -> Option<char>[src]

Trait Implementations

impl Clone for Key[src]

impl Copy for Key[src]

impl Debug for Key[src]

impl<'de> Deserialize<'de> for Key[src]

impl Display for Key[src]

impl Eq for Key[src]

impl From<&'_ str> for Key[src]

impl From<String> for Key[src]

impl From<char> for Key[src]

impl Hash for Key[src]

impl Ord for Key[src]

impl PartialEq<Key> for Key[src]

impl PartialOrd<Key> for Key[src]

impl Serialize for Key[src]

impl StructuralEq for Key[src]

impl StructuralPartialEq for Key[src]

Auto Trait Implementations

impl RefUnwindSafe for Key

impl Send for Key

impl Sync for Key

impl Unpin for Key

impl UnwindSafe for Key

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

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

impl<T> RuleType for T where
    T: Copy + Debug + Eq + Hash + Ord
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.