pub struct ScoredCandidate {
pub raw: RawCandidate,
pub score: MatchScore,
pub match_ranges: Vec<Range<usize>>,
}Expand description
A RawCandidate plus the matcher’s verdict. Survives the
match stage; consumed by the ranker and (in turn) the annotators.
Fields§
§raw: RawCandidate§score: MatchScore§match_ranges: Vec<Range<usize>>Byte ranges in raw.text that the matcher consumed. Empty
vec for matchers that don’t track ranges (e.g. coarse fuzzy);
renderers tolerate either case.
Trait Implementations§
Source§impl Clone for ScoredCandidate
impl Clone for ScoredCandidate
Source§fn clone(&self) -> ScoredCandidate
fn clone(&self) -> ScoredCandidate
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ScoredCandidate
impl !UnwindSafe for ScoredCandidate
impl Freeze for ScoredCandidate
impl Send for ScoredCandidate
impl Sync for ScoredCandidate
impl Unpin for ScoredCandidate
impl UnsafeUnpin for ScoredCandidate
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