pub struct KeyEvent { /* private fields */ }Expand description
Unified keyboard event payload.
Implementations§
Source§impl KeyEvent
impl KeyEvent
pub fn get_code(&self) -> KeyCode
pub fn get_mut_code(&mut self) -> &mut KeyCode
pub fn set_code(&mut self, val: KeyCode) -> &mut Self
pub fn get_modifiers(&self) -> Modifiers
pub fn get_mut_modifiers(&mut self) -> &mut Modifiers
pub fn set_modifiers(&mut self, val: Modifiers) -> &mut Self
pub fn get_repeat(&self) -> bool
pub fn get_mut_repeat(&mut self) -> &mut bool
pub fn set_repeat(&mut self, val: bool) -> &mut Self
Trait Implementations§
impl Copy for KeyEvent
impl Eq for KeyEvent
impl StructuralPartialEq for KeyEvent
Auto Trait Implementations§
impl Forget for KeyEvent
impl Freeze for KeyEvent
impl Move for KeyEvent
impl RefUnwindSafe for KeyEvent
impl Send for KeyEvent
impl Sync for KeyEvent
impl Unpin for KeyEvent
impl UnsafeUnpin for KeyEvent
impl UnwindSafe for KeyEvent
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