Trait nom::Compare
[−]
[src]
pub trait Compare<T> { fn compare(&self, t: T) -> CompareResult; fn compare_no_case(&self, t: T) -> CompareResult; }
abstracts comparison operations
Required Methods
fn compare(&self, t: T) -> CompareResult
compares self to another value for equality
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