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
Implementors
impl<'a, 'b> Compare<&'b [u8]> for &'a [u8]
impl<'a, 'b> Compare<&'b str> for &'a [u8]
impl<'a, 'b> Compare<&'b str> for &'a str
impl<'a> Compare<[u8; 0]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 0]> for &'a [u8]
impl<'a> Compare<[u8; 1]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 1]> for &'a [u8]
impl<'a> Compare<[u8; 2]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 2]> for &'a [u8]
impl<'a> Compare<[u8; 3]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 3]> for &'a [u8]
impl<'a> Compare<[u8; 4]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 4]> for &'a [u8]
impl<'a> Compare<[u8; 5]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 5]> for &'a [u8]
impl<'a> Compare<[u8; 6]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 6]> for &'a [u8]
impl<'a> Compare<[u8; 7]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 7]> for &'a [u8]
impl<'a> Compare<[u8; 8]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 8]> for &'a [u8]
impl<'a> Compare<[u8; 9]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 9]> for &'a [u8]
impl<'a> Compare<[u8; 10]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 10]> for &'a [u8]
impl<'a> Compare<[u8; 11]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 11]> for &'a [u8]
impl<'a> Compare<[u8; 12]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 12]> for &'a [u8]
impl<'a> Compare<[u8; 13]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 13]> for &'a [u8]
impl<'a> Compare<[u8; 14]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 14]> for &'a [u8]
impl<'a> Compare<[u8; 15]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 15]> for &'a [u8]
impl<'a> Compare<[u8; 16]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 16]> for &'a [u8]
impl<'a> Compare<[u8; 17]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 17]> for &'a [u8]
impl<'a> Compare<[u8; 18]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 18]> for &'a [u8]
impl<'a> Compare<[u8; 19]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 19]> for &'a [u8]
impl<'a> Compare<[u8; 20]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 20]> for &'a [u8]
impl<'a> Compare<[u8; 21]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 21]> for &'a [u8]
impl<'a> Compare<[u8; 22]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 22]> for &'a [u8]
impl<'a> Compare<[u8; 23]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 23]> for &'a [u8]
impl<'a> Compare<[u8; 24]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 24]> for &'a [u8]
impl<'a> Compare<[u8; 25]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 25]> for &'a [u8]
impl<'a> Compare<[u8; 26]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 26]> for &'a [u8]
impl<'a> Compare<[u8; 27]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 27]> for &'a [u8]
impl<'a> Compare<[u8; 28]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 28]> for &'a [u8]
impl<'a> Compare<[u8; 29]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 29]> for &'a [u8]
impl<'a> Compare<[u8; 30]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 30]> for &'a [u8]
impl<'a> Compare<[u8; 31]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 31]> for &'a [u8]
impl<'a> Compare<[u8; 32]> for &'a [u8]
impl<'a, 'b> Compare<&'b [u8; 32]> for &'a [u8]