Struct ngrammatic::SearchResult
[−]
[src]
pub struct SearchResult { pub text: String, pub similarity: f32, }
Holds a fuzzy match search result string, and its associated similarity to the query text.
Fields
text: String
The text of a fuzzy match
similarity: f32
A similarity value indicating how closely the other term matched
Methods
impl SearchResult
[src]
fn new(text: String, similarity: f32) -> Self
[src]
Trivial constructor used internally to build search results
Trait Implementations
impl Debug for SearchResult
[src]
impl Clone for SearchResult
[src]
fn clone(&self) -> SearchResult
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd for SearchResult
[src]
fn partial_cmp(&self, other: &SearchResult) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more