Trait str_utils::EqIgnoreAsciiCase[][src]

pub trait EqIgnoreAsciiCase {
    fn eq_ignore_ascii_case_with_lowercase<S: AsRef<[u8]>>(&self, b: S) -> bool;
fn eq_ignore_ascii_case_with_uppercase<S: AsRef<[u8]>>(&self, b: S) -> bool; }

To extend types which implement AsRef<[u8]> to have eq_ignore_ascii_case_with_lowercase and eq_ignore_ascii_case_with_uppercase methods.

These methods are a little faster than eq_ignore_ascii_case.

Required methods

fn eq_ignore_ascii_case_with_lowercase<S: AsRef<[u8]>>(&self, b: S) -> bool[src]

Returns true if the given lowercase string slice case-insensitively (only ignoring ASCII case) matches this string slice.

fn eq_ignore_ascii_case_with_uppercase<S: AsRef<[u8]>>(&self, b: S) -> bool[src]

Returns true if the given uppercase string slice case-insensitively (only ignoring ASCII case) matches this string slice.

Loading content...

Implementors

impl<T: AsRef<[u8]>> EqIgnoreAsciiCase for T[src]

Loading content...