pub enum KeyState {
NoOp,
Keyboard(KeyState),
LayerModifier(ModifierKeyState),
Sticky(KeyState),
Custom(KeyState),
}
Expand description
Aggregate enum for key state. (i.e. pressed key data).
Variants§
NoOp
No-op key state.
Keyboard(KeyState)
Key state for key::keyboard::KeyState.
LayerModifier(ModifierKeyState)
Key state for key::layered::ModifierKeyState.
Sticky(KeyState)
Key state for key::sticky::KeyState.
Custom(KeyState)
Key state for key::custom::KeyState.
Trait Implementations§
Source§impl From<ModifierKeyState> for KeyState
impl From<ModifierKeyState> for KeyState
Source§fn from(ks: ModifierKeyState) -> Self
fn from(ks: ModifierKeyState) -> Self
Converts to this type from the input type.
Source§impl KeyState for KeyState
impl KeyState for KeyState
impl Copy 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 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