[][src]Trait media_type::AsciiCaseInsensitiveEq

pub trait AsciiCaseInsensitiveEq<Rhs> where
    Rhs: ?Sized
{ fn eq_ignore_ascii_case(&self, other: &Rhs) -> bool; }

Analogous to PartialEq, but with ascii case insensitive equality

Required methods

fn eq_ignore_ascii_case(&self, other: &Rhs) -> bool

compares this instance with other with a ascii case insensitive comparsion algorithm

Note that this is ascii case insensitivity. Which means this will not work well/as expected if the content contain non ascii characters. E.g. the upercase of "ß" was "SS" but by know there is also a "ẞ" used in all caps writing.

Loading content...

Implementations on Foreign Types

impl<'a, 'b, Spec> AsciiCaseInsensitiveEq<&'b str> for ContentChars<'a, Spec> where
    Spec: GeneralQSSpec
[src]

impl<'a, 'b, Spec> AsciiCaseInsensitiveEq<ContentChars<'b, Spec>> for &'a str where
    Spec: GeneralQSSpec
[src]

impl<'a, Spec> AsciiCaseInsensitiveEq<str> for ContentChars<'a, Spec> where
    Spec: GeneralQSSpec
[src]

impl<'a, 'b, Spec> AsciiCaseInsensitiveEq<ContentChars<'b, Spec>> for ContentChars<'a, Spec> where
    Spec: GeneralQSSpec
[src]

impl<'a> AsciiCaseInsensitiveEq<Value<'a>> for str[src]

impl<'a, 'b> AsciiCaseInsensitiveEq<Value<'a>> for &'b str[src]

Loading content...

Implementors

impl<'a> AsciiCaseInsensitiveEq<str> for Value<'a>[src]

impl<'a, 'b> AsciiCaseInsensitiveEq<&'b str> for Value<'a>[src]

impl<'a, 'b> AsciiCaseInsensitiveEq<Value<'b>> for Value<'a>[src]

Loading content...