pub enum ChordedPressedKeyState<K: ChordedNestable> {
Chorded(PressedKeyState<K>),
Auxiliary(PressedKeyState<K>),
Pass(LayeredPressedKeyState<TapHoldKey<BaseKey>>),
}
Expand description
Aggregates the key::PressedKeyState types.
Variants§
Chorded(PressedKeyState<K>)
A chorded key’s pressed state.
Auxiliary(PressedKeyState<K>)
An auxiliary chorded key’s pressed state.
Pass(LayeredPressedKeyState<TapHoldKey<BaseKey>>)
Passthrough state.
Trait Implementations§
Source§impl<K: Debug + ChordedNestable> Debug for ChordedPressedKeyState<K>
impl<K: Debug + ChordedNestable> Debug for ChordedPressedKeyState<K>
Source§impl<K: PartialEq + ChordedNestable> PartialEq for ChordedPressedKeyState<K>
impl<K: PartialEq + ChordedNestable> PartialEq for ChordedPressedKeyState<K>
Source§impl<K: Copy + Into<ChordedKey<NK>>, NK: ChordedNestable> PressedKeyState<K> for ChordedPressedKeyState<NK>
impl<K: Copy + Into<ChordedKey<NK>>, NK: ChordedNestable> PressedKeyState<K> for ChordedPressedKeyState<NK>
Source§fn handle_event_for(
&mut self,
context: Context,
keymap_index: u16,
key: &K,
event: Event<Event>,
) -> PressedKeyEvents<Event>
fn handle_event_for( &mut self, context: Context, keymap_index: u16, key: &K, event: Event<Event>, ) -> PressedKeyEvents<Event>
Used to update the PressedKeyState’s state, and possibly yield event(s).
Source§fn key_output(&self, key: &K) -> KeyOutputState
fn key_output(&self, key: &K) -> KeyOutputState
Output for the pressed key state.
impl<K: ChordedNestable> StructuralPartialEq for ChordedPressedKeyState<K>
Auto Trait Implementations§
impl<K> Freeze for ChordedPressedKeyState<K>
impl<K> RefUnwindSafe for ChordedPressedKeyState<K>
impl<K> Send for ChordedPressedKeyState<K>
impl<K> Sync for ChordedPressedKeyState<K>
impl<K> Unpin for ChordedPressedKeyState<K>
impl<K> UnwindSafe for ChordedPressedKeyState<K>
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