pub struct Context<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> { /* private fields */ }Expand description
Global sequence mode state.
Implementations§
Source§impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
Sourcepub const fn from_config(
config: Config<MAX_SEQUENCES, MAX_SEQUENCE_LEN>,
) -> Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
pub const fn from_config( config: Config<MAX_SEQUENCES, MAX_SEQUENCE_LEN>, ) -> Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
Constructs from config.
Sourcepub fn last_press_outcome(&self) -> PressOutcome
pub fn last_press_outcome(&self) -> PressOutcome
Outcome of the latest input press (for sequence keys).
Sourcepub fn update_keymap_context(&mut self, _: &KeymapContext)
pub fn update_keymap_context(&mut self, _: &KeymapContext)
Updates idle time from the keymap engine.
Trait Implementations§
Source§impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> Clone for Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> Clone for Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
Source§impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> Context for Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> Context for Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
Source§impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> Debug for Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> Debug for Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
Source§impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> PartialEq for Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> PartialEq for Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> Copy for Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> StructuralPartialEq for Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
Auto Trait Implementations§
impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> Freeze for Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> RefUnwindSafe for Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> Send for Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> Sync for Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> Unpin for Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> UnsafeUnpin for Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
impl<const MAX_SEQUENCES: usize, const MAX_SEQUENCE_LEN: usize> UnwindSafe for Context<MAX_SEQUENCES, MAX_SEQUENCE_LEN>
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