pub struct KeyPressHistory { /* private fields */ }
Expand description
Manages key press history with a ring buffer and smart coalescing
Implementations§
Source§impl KeyPressHistory
impl KeyPressHistory
pub fn new(max_size: usize) -> Self
Sourcepub fn add(&mut self, entry: KeyPressEntry)
pub fn add(&mut self, entry: KeyPressEntry)
Add a new key press to the history with smart coalescing
Sourcepub fn entries(&self) -> &VecDeque<KeyPressEntry>
pub fn entries(&self) -> &VecDeque<KeyPressEntry>
Get all entries
Sourcepub fn format_history(&self) -> String
pub fn format_history(&self) -> String
Get formatted history for display
Sourcepub fn format_debug_history(&self) -> String
pub fn format_debug_history(&self) -> String
Get detailed debug history with platform info and actions
Trait Implementations§
Source§impl Clone for KeyPressHistory
impl Clone for KeyPressHistory
Source§fn clone(&self) -> KeyPressHistory
fn clone(&self) -> KeyPressHistory
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for KeyPressHistory
impl RefUnwindSafe for KeyPressHistory
impl Send for KeyPressHistory
impl Sync for KeyPressHistory
impl Unpin for KeyPressHistory
impl UnwindSafe for KeyPressHistory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more