#[non_exhaustive]pub struct KeyState(pub u32);Expand description
physical key state
Describes the physical state of a key that produced the key event.
Since version 10, the key can be in a “repeated” pseudo-state which means the same as “pressed”, but is used to signal repetition in the key event.
The key may only enter the repeated state after entering the pressed state and before entering the released state. This event may be generated multiple times while the key is down.
Tuple Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.0: u32Implementations§
Trait Implementations§
Source§impl Ord for KeyState
impl Ord for KeyState
Source§impl PartialOrd for KeyState
impl PartialOrd for KeyState
impl Copy for KeyState
impl Eq for KeyState
impl StructuralPartialEq for KeyState
Auto Trait Implementations§
impl Freeze for KeyState
impl RefUnwindSafe for KeyState
impl Send for KeyState
impl Sync for KeyState
impl Unpin for KeyState
impl UnsafeUnpin for KeyState
impl UnwindSafe for KeyState
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