pub struct PendingKeyState { /* private fields */ }
Expand description
The state of a pressed tap-hold key.
Implementations§
Source§impl PendingKeyState
impl PendingKeyState
Sourcepub fn handle_event(
&mut self,
context: &Context,
keymap_index: u16,
event: Event<Event>,
) -> Option<TapHoldState>
pub fn handle_event( &mut self, context: &Context, keymap_index: u16, event: Event<Event>, ) -> Option<TapHoldState>
Returns at most 2 events
Trait Implementations§
Source§impl Clone for PendingKeyState
impl Clone for PendingKeyState
Source§fn clone(&self) -> PendingKeyState
fn clone(&self) -> PendingKeyState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PendingKeyState
impl Debug for PendingKeyState
Source§impl From<PendingKeyState> for PendingKeyState
impl From<PendingKeyState> for PendingKeyState
Source§fn from(pks: PendingKeyState) -> Self
fn from(pks: PendingKeyState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PendingKeyState
impl PartialEq for PendingKeyState
Source§impl<'pks> TryFrom<&'pks mut PendingKeyState> for &'pks mut PendingKeyState
impl<'pks> TryFrom<&'pks mut PendingKeyState> for &'pks mut PendingKeyState
impl StructuralPartialEq for PendingKeyState
Auto Trait Implementations§
impl Freeze for PendingKeyState
impl RefUnwindSafe for PendingKeyState
impl Send for PendingKeyState
impl Sync for PendingKeyState
impl Unpin for PendingKeyState
impl UnwindSafe for PendingKeyState
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