Trait str_utils::StartsWithIgnoreAsciiCase[][src]

pub trait StartsWithIgnoreAsciiCase {
    fn starts_with_ignore_ascii_case<S: AsRef<[u8]>>(&self, b: S) -> bool;
fn starts_with_ignore_ascii_case_with_lowercase<S: AsRef<[u8]>>(
        &self,
        b: S
    ) -> bool;
fn starts_with_ignore_ascii_case_with_uppercase<S: AsRef<[u8]>>(
        &self,
        b: S
    ) -> bool; }

To extend types which implement AsRef<[u8]> to have starts_with_ignore_ascii_case, starts_with_ignore_ascii_case_with_lowercase and starts_with_ignore_ascii_case_with_uppercase methods.

Required methods

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

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

fn starts_with_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 a prefix of this string slice.

fn starts_with_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 a prefix of this string slice.

Loading content...

Implementors

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

Loading content...