pub struct NodeView {
pub children: Vec<ChildView>,
pub wildcard: Option<ChildView>,
pub terminal: Option<Arc<BoundCommand>>,
}Expand description
WK.1: the immediate children of the node a prefix names — which-key’s
view of the trie, as distinct from :describe-key’s
KeymapTrie::walk_continuations, which wants the whole subtree with
provenance. Same trie, different questions.
Fields§
§children: Vec<ChildView>Exact-match descents, in unspecified order — the caller sorts
(children is a HashMap, so an explicit total order is
required or the grid reshuffles between openings of the same
prefix).
wildcard: Option<ChildView>The {char} wildcard descent, if this node has one.
terminal: Option<Arc<BoundCommand>>A binding at the node ITSELF: the prefix is also bound, vim’s
d-is-an-operator-and-a-prefix case. Reported in the popup’s
footer rather than as a row.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeView
impl RefUnwindSafe for NodeView
impl Send for NodeView
impl Sync for NodeView
impl Unpin for NodeView
impl UnsafeUnpin for NodeView
impl UnwindSafe for NodeView
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