pub struct Candidate {
pub text: Text,
pub matches: Vec<usize>,
/* private fields */
}
Expand description
A string that fuzzy-matches a query.
Fields§
§text: Text
§matches: Vec<usize>
Implementations§
Trait Implementations§
source§impl Ord for Candidate
impl Ord for Candidate
source§impl PartialEq<Candidate> for Candidate
impl PartialEq<Candidate> for Candidate
source§impl PartialOrd<Candidate> for Candidate
impl PartialOrd<Candidate> for Candidate
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Candidate
Auto Trait Implementations§
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnwindSafe for Candidate
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