pub trait Compare<T> {
// Required methods
fn compare(&self, t: T) -> CompareResult;
fn compare_no_case(&self, t: T) -> CompareResult;
}
Available on crate feature
mtls
only.Expand description
Abstracts comparison operations
Required Methods§
sourcefn compare(&self, t: T) -> CompareResult
fn compare(&self, t: T) -> CompareResult
Compares self to another value for equality
sourcefn compare_no_case(&self, t: T) -> CompareResult
fn compare_no_case(&self, t: T) -> CompareResult
Compares 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