pub struct Key(/* private fields */);Implementations§
Source§impl Key
impl Key
pub const NONE: Self
pub const TAB: Self
pub const ENTER: Self
pub const ESCAPE: Self
pub const SPACE: Self
pub const BACKSPACE: Self
pub const DELETE: Self
pub const ARROW_UP: Self
pub const ARROW_DOWN: Self
pub const ARROW_LEFT: Self
pub const ARROW_RIGHT: Self
pub const HOME: Self
pub const END: Self
pub const INSERT: Self
pub const PAGE_UP: Self
pub const PAGE_DOWN: Self
pub const F1: Self
pub const F2: Self
pub const F3: Self
pub const F4: Self
pub const F5: Self
pub const F6: Self
pub const F7: Self
pub const F8: Self
pub const F9: Self
pub const F10: Self
pub const F11: Self
pub const F12: Self
pub fn from_char(c: char) -> Self
pub fn char(self) -> Option<char>
pub fn allows_repeat(self) -> bool
Trait Implementations§
impl Copy for Key
impl Eq for Key
impl StructuralPartialEq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more