pub struct ChordState { /* private fields */ }Expand description
Cross-frame partial-sequence buffer for
Context::key_chord.
Persisted in FrameState across frames (same out/in policy as
keyed_states). Holds at most one in-flight chord prefix; a mismatching
key or a timeout clears it. You never construct this directly — SLT owns a
single instance per Context and threads it through the
frame loop for you.
§Example
slt::run(|ui: &mut slt::Context| {
// The buffer is managed internally; just call `key_chord`.
if ui.key_chord("gg") {
// jump to top
}
});Trait Implementations§
Source§impl Clone for ChordState
impl Clone for ChordState
Source§fn clone(&self) -> ChordState
fn clone(&self) -> ChordState
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 moreSource§impl Debug for ChordState
impl Debug for ChordState
Source§impl Default for ChordState
impl Default for ChordState
Source§fn default() -> ChordState
fn default() -> ChordState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChordState
impl RefUnwindSafe for ChordState
impl Send for ChordState
impl Sync for ChordState
impl Unpin for ChordState
impl UnsafeUnpin for ChordState
impl UnwindSafe for ChordState
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