pub struct WhichKeyModel {
pub prefix: Vec<KeyChord>,
pub mode: BindingMode,
pub entries: Vec<Entry>,
pub wildcard: Option<Entry>,
pub terminal_label: Option<String>,
}Expand description
The popup’s content, before layout.
Fields§
§prefix: Vec<KeyChord>The chords already pressed, for the header.
mode: BindingModeThe binding mode the continuations were resolved in.
entries: Vec<Entry>Rows, already collated.
wildcard: Option<Entry>The {char} row, if the node has a wildcard descent. Held apart
so it can be rendered last regardless of collation — a wildcard
matches any key, so sorting it among specific keys would imply
an ordering it does not have.
terminal_label: Option<String>Set when the prefix node is ALSO bound (vim’s d: an operator
and a prefix). Carries the bound command’s label for the footer,
rather than a row — pressing nothing more is not a “next key”.
Implementations§
Trait Implementations§
Source§impl Clone for WhichKeyModel
impl Clone for WhichKeyModel
Source§fn clone(&self) -> WhichKeyModel
fn clone(&self) -> WhichKeyModel
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 moreAuto Trait Implementations§
impl Freeze for WhichKeyModel
impl RefUnwindSafe for WhichKeyModel
impl Send for WhichKeyModel
impl Sync for WhichKeyModel
impl Unpin for WhichKeyModel
impl UnsafeUnpin for WhichKeyModel
impl UnwindSafe for WhichKeyModel
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