pub struct LayeredPressedKeyState<K: LayeredNestable>(/* private fields */);
Expand description
Aggregates the key::PressedKeyState types.
Trait Implementations§
Source§impl<K: Debug + LayeredNestable> Debug for LayeredPressedKeyState<K>where
K::PressedKey: Debug,
impl<K: Debug + LayeredNestable> Debug for LayeredPressedKeyState<K>where
K::PressedKey: Debug,
Source§impl<K: PartialEq + LayeredNestable> PartialEq for LayeredPressedKeyState<K>where
K::PressedKey: PartialEq,
impl<K: PartialEq + LayeredNestable> PartialEq for LayeredPressedKeyState<K>where
K::PressedKey: PartialEq,
Source§impl<K: Copy + Into<LayeredKey<NK>>, NK: LayeredNestable> PressedKeyState<K> for LayeredPressedKeyState<NK>
impl<K: Copy + Into<LayeredKey<NK>>, NK: LayeredNestable> PressedKeyState<K> for LayeredPressedKeyState<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: LayeredNestable> StructuralPartialEq for LayeredPressedKeyState<K>
Auto Trait Implementations§
impl<K> Freeze for LayeredPressedKeyState<K>
impl<K> RefUnwindSafe for LayeredPressedKeyState<K>
impl<K> Send for LayeredPressedKeyState<K>
impl<K> Sync for LayeredPressedKeyState<K>
impl<K> Unpin for LayeredPressedKeyState<K>
impl<K> UnwindSafe for LayeredPressedKeyState<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