pub enum SearchWeight {
Title,
Identity,
Subtitle,
Metadata,
Body,
Unranked,
}Expand description
How much a match in one of a SearchEntry’s fields counts. The title
ranks as Self::Title, the subtitle as Self::Subtitle and the text
as Self::Body; SearchEntry::field adds others.
Variants§
Title
The name a person looks for.
Identity
A stable identity typed verbatim: an address, an id, a path.
Subtitle
A secondary line: an author, a sender, a folder.
Metadata
Other short fields: labels, tags, a subject.
Body
Long prose.
Unranked
Found, but never reorders hits.
Trait Implementations§
Source§impl Clone for SearchWeight
impl Clone for SearchWeight
impl Copy for SearchWeight
Source§impl Debug for SearchWeight
impl Debug for SearchWeight
impl Eq for SearchWeight
Source§impl Hash for SearchWeight
impl Hash for SearchWeight
Source§impl PartialEq for SearchWeight
impl PartialEq for SearchWeight
impl StructuralPartialEq for SearchWeight
Auto Trait Implementations§
impl Forget for SearchWeight
impl Freeze for SearchWeight
impl Move for SearchWeight
impl RefUnwindSafe for SearchWeight
impl Send for SearchWeight
impl Sync for SearchWeight
impl Unpin for SearchWeight
impl UnsafeUnpin for SearchWeight
impl UnwindSafe for SearchWeight
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more