Struct KeyEvent
struct KeyEvent(1202, 1204)
Input key pressed and modifiers
Implementations
impl KeyEvent
fn new(c: char, mods: Modifiers) -> SelfConstructor from
charand modifiersfn ctrl(c: char) -> SelfConstructor from
charwith Ctrl modifierfn alt(c: char) -> SelfConstructor from
charwith Alt modifierfn normalize(e: Self) -> Selfctrl-a => ctrl-A (uppercase) shift-A => A (no SHIFT modifier) shift-Tab =>
BackTab
impl Clone for KeyEvent
fn clone(self: &Self) -> KeyEvent
impl Copy for KeyEvent
impl Debug for KeyEvent
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Eq for KeyEvent
impl Freeze for KeyEvent
impl From for KeyEvent
fn from(c: char) -> Self
impl Hash for KeyEvent
fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)
impl PartialEq for KeyEvent
fn eq(self: &Self, other: &KeyEvent) -> bool
impl RefUnwindSafe for KeyEvent
impl Send for KeyEvent
impl StructuralPartialEq for KeyEvent
impl Sync for KeyEvent
impl Unpin for KeyEvent
impl UnsafeUnpin for KeyEvent
impl UnwindSafe for KeyEvent
impl<T> Any for KeyEvent
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for KeyEvent
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for KeyEvent
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for KeyEvent
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for KeyEvent
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for KeyEvent
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for KeyEvent
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for KeyEvent
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for KeyEvent
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>