Struct PendingKeyState
pub struct PendingKeyState { /* private fields */ }Expand description
The state of a pressed tap-hold key.
Implementations§
§impl PendingKeyState
impl PendingKeyState
pub fn handle_event(
&mut self,
profile: &Profile,
keymap_index: u16,
event: Event<Event>,
) -> Option<TapHoldState>
pub fn handle_event( &mut self, profile: &Profile, keymap_index: u16, event: Event<Event>, ) -> Option<TapHoldState>
Returns at most 2 events
Trait Implementations§
§impl Clone for PendingKeyState
impl Clone for PendingKeyState
§fn clone(&self) -> PendingKeyState
fn clone(&self) -> PendingKeyState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for PendingKeyState
impl Debug for PendingKeyState
§impl PartialEq for PendingKeyState
impl PartialEq for 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 UnsafeUnpin 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