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

compares self to another value for equality

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

Implementors