pub trait Compare<T> {
// Required method
fn compare(&self, t: T) -> CompareResult;
}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
Implementations on Foreign Types§
Source§impl<'b, const LEN: usize> Compare<Caseless<&'b [u8; LEN]>> for &[u8]
Available on crate feature ascii only.
impl<'b, const LEN: usize> Compare<Caseless<&'b [u8; LEN]>> for &[u8]
Available on crate feature
ascii only.Source§impl<const LEN: usize> Compare<Caseless<[u8; LEN]>> for &[u8]
Available on crate feature ascii only.
impl<const LEN: usize> Compare<Caseless<[u8; LEN]>> for &[u8]
Available on crate feature
ascii only.Implementors§
impl<'a, T> Compare<T> for &'a BStr
impl<'a, T> Compare<T> for &'a Bytes
impl<I, E, U> Compare<U> for Recoverable<I, E>
Available on crate features
unstable-recover and std only.