pub struct KeyPress {
pub key: char,
}
Fields§
§key: char
Implementations§
Source§impl KeyPress
impl KeyPress
pub fn is_enter(&self) -> bool
pub fn is_backspace(&self) -> bool
pub fn is_escape(&self) -> bool
pub fn is_up_arrow(&self) -> bool
pub fn is_down_arrow(&self) -> bool
pub fn is_left_arrow(&self) -> bool
pub fn is_right_arrow(&self) -> bool
pub fn is_arrow(&self) -> bool
Sourcepub fn is_regular(&self) -> bool
pub fn is_regular(&self) -> bool
Is not enter, backspace, arrow keys (the Linear A stuff)
Auto Trait Implementations§
impl Freeze for KeyPress
impl RefUnwindSafe for KeyPress
impl Send for KeyPress
impl Sync for KeyPress
impl Unpin for KeyPress
impl UnwindSafe for KeyPress
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