Struct fuzzy2::StringMatch
source · pub struct StringMatch {
pub candidate_id: usize,
pub score: f64,
pub positions: Vec<usize>,
pub string: String,
}
Fields§
§candidate_id: usize
§score: f64
§positions: Vec<usize>
§string: String
Trait Implementations§
source§impl Clone for StringMatch
impl Clone for StringMatch
source§fn clone(&self) -> StringMatch
fn clone(&self) -> StringMatch
Returns a copy 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 StringMatch
impl Debug for StringMatch
source§impl Ord for StringMatch
impl Ord for StringMatch
source§impl PartialEq<StringMatch> for StringMatch
impl PartialEq<StringMatch> for StringMatch
source§impl PartialOrd<StringMatch> for StringMatch
impl PartialOrd<StringMatch> for StringMatch
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 StringMatch
Auto Trait Implementations§
impl RefUnwindSafe for StringMatch
impl Send for StringMatch
impl Sync for StringMatch
impl Unpin for StringMatch
impl UnwindSafe for StringMatch
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.