pub enum PrefixMatch {
Confirmed {
key: String,
prefix: Vec<String>,
},
Candidate {
key: String,
prefix: Vec<String>,
},
}Expand description
Result of a prefix lookup for a single segment’s base command.
Variants§
Confirmed
A definite mapping exists in mappings.
Candidate
No mapping; a candidate prefix is being tried speculatively.
Trait Implementations§
Source§impl Clone for PrefixMatch
impl Clone for PrefixMatch
Source§fn clone(&self) -> PrefixMatch
fn clone(&self) -> PrefixMatch
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 PrefixMatch
impl Debug for PrefixMatch
Source§impl PartialEq for PrefixMatch
impl PartialEq for PrefixMatch
Source§fn eq(&self, other: &PrefixMatch) -> bool
fn eq(&self, other: &PrefixMatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PrefixMatch
Auto Trait Implementations§
impl Freeze for PrefixMatch
impl RefUnwindSafe for PrefixMatch
impl Send for PrefixMatch
impl Sync for PrefixMatch
impl Unpin for PrefixMatch
impl UnsafeUnpin for PrefixMatch
impl UnwindSafe for PrefixMatch
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