#[repr(u8)]pub enum KeyEventResult {
EventAccepted = 0,
EventIgnored = 1,
}Expand description
Represents how an item’s key_event handler dealt with a key event. An accepted event results in no further event propagation.
Variants§
EventAccepted = 0
The event was handled.
EventIgnored = 1
The event was not handled and should be sent to other items.
Trait Implementations§
Source§impl Clone for KeyEventResult
impl Clone for KeyEventResult
Source§fn clone(&self) -> KeyEventResult
fn clone(&self) -> KeyEventResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KeyEventResult
Source§impl Debug for KeyEventResult
impl Debug for KeyEventResult
Source§impl Default for KeyEventResult
impl Default for KeyEventResult
Source§fn default() -> KeyEventResult
fn default() -> KeyEventResult
Returns the “default value” for a type. Read more
Source§impl From<KeyEventResult> for WindowEventDispatchResult
impl From<KeyEventResult> for WindowEventDispatchResult
Source§fn from(value: KeyEventResult) -> Self
fn from(value: KeyEventResult) -> Self
Converts to this type from the input type.
Source§impl PartialEq for KeyEventResult
impl PartialEq for KeyEventResult
Source§fn eq(&self, other: &KeyEventResult) -> bool
fn eq(&self, other: &KeyEventResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for KeyEventResult
Auto Trait Implementations§
impl Freeze for KeyEventResult
impl RefUnwindSafe for KeyEventResult
impl Send for KeyEventResult
impl Sync for KeyEventResult
impl Unpin for KeyEventResult
impl UnsafeUnpin for KeyEventResult
impl UnwindSafe for KeyEventResult
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