[−][src]Enum cursive::event::Key
A non-character key on the keyboard
Variants
Both Enter (or Return) and numpad Enter
Tabulation key
Backspace key
Escape key
Left arrow
Right arrow
Up arrow
Down arrow
Insert key
Delete key
Home key
End key
Page Up key
Page Down key
Pause Break key
The 5 in the center of the keypad, when numlock is disabled.
F0 key
F1 key
F2 key
F3 key
F4 key
F5 key
F6 key
F7 key
F8 key
F9 key
F10 key
F11 key
F12 key
Implementations
impl Key
[src]
pub fn from_f(n: u8) -> Key
[src]
Returns the function key corresponding to the given number
1 -> F1, etc...
Panics
If n == 0 || n > 12
Trait Implementations
impl Clone for Key
[src]
impl Copy for Key
[src]
impl Debug for Key
[src]
impl Eq for Key
[src]
impl From<Key> for EventTrigger
[src]
impl From<Key> for Event
[src]
impl Hash for Key
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Key> 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]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,