winnow::stream

Trait Compare

Source
pub trait Compare<T> {
    // Required method
    fn compare(&self, t: T) -> CompareResult;
}
Expand description

Abstracts comparison operations

Required Methods§

Source

fn compare(&self, t: T) -> CompareResult

Compares self to another value for equality

Implementations on Foreign Types§

Source§

impl<'a> Compare<char> for &'a str

Source§

impl<'a> Compare<char> for &'a [u8]

Source§

impl<'a> Compare<u8> for &'a [u8]

Source§

impl<'a> Compare<Caseless<char>> for &'a str

Source§

impl<'a> Compare<Caseless<char>> for &'a [u8]

Source§

impl<'a> Compare<Caseless<u8>> for &'a [u8]

Source§

impl<'a, 'b> Compare<&'b str> for &'a str

Source§

fn compare(&self, t: &'b str) -> CompareResult

Source§

impl<'a, 'b> Compare<&'b str> for &'a [u8]

Source§

fn compare(&self, t: &'b str) -> CompareResult

Source§

impl<'a, 'b> Compare<&'b [u8]> for &'a [u8]

Source§

fn compare(&self, t: &'b [u8]) -> CompareResult

Source§

impl<'a, 'b> Compare<Caseless<&'b str>> for &'a str

Source§

impl<'a, 'b> Compare<Caseless<&'b str>> for &'a [u8]

Source§

impl<'a, 'b> Compare<Caseless<&'b [u8]>> for &'a [u8]

Source§

impl<'a, 'b, const LEN: usize> Compare<&'b [u8; LEN]> for &'a [u8]

Source§

fn compare(&self, t: &'b [u8; LEN]) -> CompareResult

Source§

impl<'a, 'b, const LEN: usize> Compare<Caseless<&'b [u8; LEN]>> for &'a [u8]

Source§

impl<'a, const LEN: usize> Compare<Caseless<[u8; LEN]>> for &'a [u8]

Source§

impl<'a, const LEN: usize> Compare<[u8; LEN]> for &'a [u8]

Source§

fn compare(&self, t: [u8; LEN]) -> CompareResult

Implementors§

Source§

impl<'a, T> Compare<T> for &'a BStr
where &'a [u8]: Compare<T>,

Source§

impl<'a, T> Compare<T> for &'a Bytes
where &'a [u8]: Compare<T>,

Source§

impl<I, S, U> Compare<U> for Stateful<I, S>
where I: Compare<U>,

Source§

impl<I, T> Compare<T> for Partial<I>
where I: Compare<T>,

Source§

impl<I, U> Compare<U> for Located<I>
where I: Compare<U>,