pub enum Match<'a, A> {
Exact(&'a A),
Prefix,
NoMatch,
}Expand description
The outcome of resolving a pending key buffer with
SequenceKeymap::lookup.
Resolution is deliberately not the name here: that word is reserved by
keymap-core for raw-byte passthrough. This is purely the table-view answer
— whether the keys are an exact hit, a prefix, or a miss — leaving “should I
wait?” to the caller.
The three variants are exhaustive on purpose: a pure trie lookup has no other
outcome, and timeout (jj-style) handling lives in the caller, not in this
result. So this enum is not #[non_exhaustive] — callers can and should
match all three arms with the compiler checking coverage.
Variants§
Exact(&'a A)
The keys are a complete binding, resolving to this action.
Prefix
The keys are a proper prefix of at least one longer binding.
NoMatch
The keys are not on any binding path.