pub enum TapHoldPressedKeyState<K: TapHoldNestable> {
TapHold(PressedKeyState<K>),
Pass(BasePressedKeyState),
}
Expand description
Aggregates the key::PressedKeyState types.
Variants§
TapHold(PressedKeyState<K>)
A tap-hold key’s pressed state.
Pass(BasePressedKeyState)
Passthrough state.
Trait Implementations§
Source§impl<K: Debug + TapHoldNestable> Debug for TapHoldPressedKeyState<K>
impl<K: Debug + TapHoldNestable> Debug for TapHoldPressedKeyState<K>
Source§impl<PKS: Into<BasePressedKeyState>> From<PKS> for TapHoldPressedKeyState<BaseKey>
impl<PKS: Into<BasePressedKeyState>> From<PKS> for TapHoldPressedKeyState<BaseKey>
Source§impl<K: TapHoldNestable> From<PressedKeyState<K>> for TapHoldPressedKeyState<K>
impl<K: TapHoldNestable> From<PressedKeyState<K>> for TapHoldPressedKeyState<K>
Source§fn from(pks: PressedKeyState<K>) -> Self
fn from(pks: PressedKeyState<K>) -> Self
Converts to this type from the input type.
Source§impl<K: PartialEq + TapHoldNestable> PartialEq for TapHoldPressedKeyState<K>
impl<K: PartialEq + TapHoldNestable> PartialEq for TapHoldPressedKeyState<K>
Source§impl<K: Copy + Into<TapHoldKey<NK>>, NK: TapHoldNestable> PressedKeyState<K> for TapHoldPressedKeyState<NK>
impl<K: Copy + Into<TapHoldKey<NK>>, NK: TapHoldNestable> PressedKeyState<K> for TapHoldPressedKeyState<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: TapHoldNestable> StructuralPartialEq for TapHoldPressedKeyState<K>
Auto Trait Implementations§
impl<K> Freeze for TapHoldPressedKeyState<K>
impl<K> RefUnwindSafe for TapHoldPressedKeyState<K>
impl<K> Send for TapHoldPressedKeyState<K>
impl<K> Sync for TapHoldPressedKeyState<K>
impl<K> Unpin for TapHoldPressedKeyState<K>
impl<K> UnwindSafe for TapHoldPressedKeyState<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