pub struct Key(/* private fields */);Implementations§
Source§impl Key
impl Key
pub const NONE: Key
pub const TAB: Key
pub const ENTER: Key
pub const ESCAPE: Key
pub const SPACE: Key
pub const BACKSPACE: Key
pub const DELETE: Key
pub const ARROW_UP: Key
pub const ARROW_DOWN: Key
pub const ARROW_LEFT: Key
pub const ARROW_RIGHT: Key
pub const HOME: Key
pub const END: Key
pub const INSERT: Key
pub const PAGE_UP: Key
pub const PAGE_DOWN: Key
pub const F1: Key
pub const F2: Key
pub const F3: Key
pub const F4: Key
pub const F5: Key
pub const F6: Key
pub const F7: Key
pub const F8: Key
pub const F9: Key
pub const F10: Key
pub const F11: Key
pub const F12: Key
pub fn from_char(c: char) -> Key
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