Struct rust2vec::WordSimilarity
[−]
[src]
pub struct WordSimilarity<'a> { pub word: &'a str, pub similarity: f32, }
A word similarity.
This data structure is used to store a pair consisting of a word and its similarity to a query word.
Fields
word: &'a str
similarity: f32
Trait Implementations
impl<'a> Debug for WordSimilarity<'a>
[src]
impl<'a> Ord for WordSimilarity<'a>
[src]
fn cmp(&self, other: &Self) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl<'a> PartialOrd for WordSimilarity<'a>
[src]
fn partial_cmp(&self, other: &WordSimilarity) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
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
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
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
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more