#[repr(i32)]pub enum MatchKind {
Unspecified = 0,
Exact = 1,
Prefix = 2,
Fuzzy = 3,
Fulltext = 4,
Semantic = 5,
HashExact = 6,
HashPrefix = 7,
}Expand description
How a hit was produced. Used by MatchProvenance (#976).
Variants§
Unspecified = 0
Exact = 1
Prefix = 2
Fuzzy = 3
Fulltext = 4
Semantic = 5
HashExact = 6
HashPrefix = 7
Implementations§
Source§impl MatchKind
impl MatchKind
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
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