pub enum LookupResult {
Bound {
command: Arc<BoundCommand>,
captured: Vec<char>,
},
Partial,
Unbound,
}Expand description
Lookup outcome.
Variants§
Bound
Walk terminated at a node with a terminal binding.
captured records every char absorbed by CharLiteral
wildcards along the path – empty for binding paths
without wildcards (the common case).
Fields
§
command: Arc<BoundCommand>The binding at the terminal node.
Partial
Walk consumed every input chord but landed at an internal node (children present, no terminal). Caller stays in pending state and waits for the next chord.
Unbound
Walk hit a node with no descent matching the next chord. Caller falls through (Insert mode literal text, Normal mode no-op, etc.).
Trait Implementations§
Source§impl Clone for LookupResult
impl Clone for LookupResult
Source§fn clone(&self) -> LookupResult
fn clone(&self) -> LookupResult
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 LookupResult
impl RefUnwindSafe for LookupResult
impl Send for LookupResult
impl Sync for LookupResult
impl Unpin for LookupResult
impl UnsafeUnpin for LookupResult
impl UnwindSafe for LookupResult
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