pub enum KeyPressResult {
Handled = 0,
Ignored = 1,
}Expand description
Whether a key press was consumed.
Two cases, neither with a payload, so the tags are the declaration order and the whole value is one byte in a register.
Variants§
Trait Implementations§
Source§impl Clone for KeyPressResult
impl Clone for KeyPressResult
impl Copy for KeyPressResult
Source§impl Debug for KeyPressResult
impl Debug for KeyPressResult
impl Eq for KeyPressResult
Source§impl From<Handled> for KeyPressResult
impl From<Handled> for KeyPressResult
Source§impl From<Ignored> for KeyPressResult
impl From<Ignored> for KeyPressResult
Source§impl PartialEq for KeyPressResult
impl PartialEq for KeyPressResult
impl StructuralPartialEq for KeyPressResult
Auto Trait Implementations§
impl Freeze for KeyPressResult
impl RefUnwindSafe for KeyPressResult
impl Send for KeyPressResult
impl Sync for KeyPressResult
impl Unpin for KeyPressResult
impl UnsafeUnpin for KeyPressResult
impl UnwindSafe for KeyPressResult
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