pub enum EvidenceKind {
MatchType,
WordBoundary,
Position,
GapPenalty,
TagMatch,
TitleLength,
}Expand description
Types of evidence that contribute to match scoring.
Variants§
MatchType
Base match type (prior).
WordBoundary
Match at word boundary.
Position
Match position (earlier is better).
GapPenalty
Gap between matched characters.
TagMatch
Query also matches a tag.
TitleLength
Title length factor (shorter is more specific).
Trait Implementations§
Source§impl Clone for EvidenceKind
impl Clone for EvidenceKind
Source§fn clone(&self) -> EvidenceKind
fn clone(&self) -> EvidenceKind
Returns a duplicate of the value. Read more
1.0.0 · 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 EvidenceKind
impl Debug for EvidenceKind
Source§impl PartialEq for EvidenceKind
impl PartialEq for EvidenceKind
impl Copy for EvidenceKind
impl Eq for EvidenceKind
impl StructuralPartialEq for EvidenceKind
Auto Trait Implementations§
impl Freeze for EvidenceKind
impl RefUnwindSafe for EvidenceKind
impl Send for EvidenceKind
impl Sync for EvidenceKind
impl Unpin for EvidenceKind
impl UnsafeUnpin for EvidenceKind
impl UnwindSafe for EvidenceKind
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> 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.