Struct fzyr::ScoreResult [−][src]
Result of querying the score against a candidate
Fields
candidate: &'src str
score: Score
Methods
impl<'src> ScoreResult<'src>
[src]
impl<'src> ScoreResult<'src>
pub fn new(candidate: &'src str) -> Self
[src]
pub fn new(candidate: &'src str) -> Self
pub fn with_score(candidate: &'src str, score: Score) -> Self
[src]
pub fn with_score(candidate: &'src str, score: Score) -> Self
Trait Implementations
impl<'src> Debug for ScoreResult<'src>
[src]
impl<'src> Debug for ScoreResult<'src>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'src> PartialOrd for ScoreResult<'src>
[src]
impl<'src> PartialOrd for ScoreResult<'src>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Self) -> 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[src]
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]
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]
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]
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
impl<'src> PartialEq for ScoreResult<'src>
[src]
impl<'src> PartialEq for ScoreResult<'src>
Auto Trait Implementations
impl<'src> Send for ScoreResult<'src>
impl<'src> Send for ScoreResult<'src>
impl<'src> Sync for ScoreResult<'src>
impl<'src> Sync for ScoreResult<'src>