pub struct KeyEventState(/* private fields */);Expand description
Additional state reported with an enhanced keyboard event.
Implementations§
Source§impl KeyEventState
impl KeyEventState
pub const NONE: KeyEventState
pub const KEYPAD: KeyEventState
pub const CAPS_LOCK: KeyEventState
pub const NUM_LOCK: KeyEventState
pub const fn union(self, other: KeyEventState) -> KeyEventState
pub const fn contains(self, other: KeyEventState) -> bool
Trait Implementations§
Source§impl BitOr for KeyEventState
impl BitOr for KeyEventState
Source§type Output = KeyEventState
type Output = KeyEventState
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: KeyEventState) -> <KeyEventState as BitOr>::Output
fn bitor(self, rhs: KeyEventState) -> <KeyEventState as BitOr>::Output
Performs the
| operation. Read moreSource§impl Clone for KeyEventState
impl Clone for KeyEventState
Source§fn clone(&self) -> KeyEventState
fn clone(&self) -> KeyEventState
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 moreSource§impl Debug for KeyEventState
impl Debug for KeyEventState
Source§impl Default for KeyEventState
impl Default for KeyEventState
Source§fn default() -> KeyEventState
fn default() -> KeyEventState
Returns the “default value” for a type. Read more
Source§impl Hash for KeyEventState
impl Hash for KeyEventState
Source§impl PartialEq for KeyEventState
impl PartialEq for KeyEventState
Source§fn eq(&self, other: &KeyEventState) -> bool
fn eq(&self, other: &KeyEventState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for KeyEventState
impl Eq for KeyEventState
impl StructuralPartialEq for KeyEventState
Auto Trait Implementations§
impl Freeze for KeyEventState
impl RefUnwindSafe for KeyEventState
impl Send for KeyEventState
impl Sync for KeyEventState
impl Unpin for KeyEventState
impl UnsafeUnpin for KeyEventState
impl UnwindSafe for KeyEventState
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