Trait Compare
pub trait Compare<T>
Abstracts comparison operations
Required Methods
fn compare(&self, t: T) -> CompareResultCompares self to another value for equality
fn compare_no_case(&self, t: T) -> CompareResultCompares self to another value for equality independently of the case.
Warning: for
&str, the comparison is done by lowercasing both strings and comparing the result. This is a temporary solution until a better one appears