pub enum MatchKind {
Exact,
Substring,
AllTokens,
SomeTokens,
Concept,
Documentation,
}Expand description
How a symbol matched a query, strongest first.
Variants§
Exact
The query is the whole name.
Substring
The query appears verbatim inside the name.
AllTokens
Every query word appears among the name’s words.
SomeTokens
Some query words appear among the name’s words.
Concept
Query words are lexically related to the name’s words.
Documentation
Query words appear in the docstring, signature, or file path.
Implementations§
Trait Implementations§
impl Copy for MatchKind
impl Eq for MatchKind
Source§impl Ord for MatchKind
impl Ord for MatchKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for MatchKind
impl PartialOrd for MatchKind
impl StructuralPartialEq for MatchKind
Auto Trait Implementations§
impl Freeze for MatchKind
impl RefUnwindSafe for MatchKind
impl Send for MatchKind
impl Sync for MatchKind
impl Unpin for MatchKind
impl UnsafeUnpin for MatchKind
impl UnwindSafe for MatchKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.