Trait StartsWithIgnoreAsciiCaseMultiple

Source
pub trait StartsWithIgnoreAsciiCaseMultiple {
    // Required methods
    fn starts_with_ignore_ascii_case_multiple<S: AsRef<[u8]>>(
        &self,
        bs: &[S],
    ) -> Option<usize>;
    fn starts_with_ignore_ascii_case_with_lowercase_multiple<S: AsRef<[u8]>>(
        &self,
        bs: &[S],
    ) -> Option<usize>;
    fn starts_with_ignore_ascii_case_with_uppercase_multiple<S: AsRef<[u8]>>(
        &self,
        bs: &[S],
    ) -> Option<usize>;
}
Expand description

To extend types which implement AsRef<[u8]> to have starts_with_ignore_ascii_case_multiple, starts_with_ignore_ascii_case_with_lowercase_multiple and starts_with_ignore_ascii_case_with_uppercase_multiple methods.

Required Methods§

Source

fn starts_with_ignore_ascii_case_multiple<S: AsRef<[u8]>>( &self, bs: &[S], ) -> Option<usize>

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

Source

fn starts_with_ignore_ascii_case_with_lowercase_multiple<S: AsRef<[u8]>>( &self, bs: &[S], ) -> Option<usize>

Returns Some(usize) if one of the given lowercase string slices case-insensitively (only ignoring ASCII case) matches a prefix of this string slice.

Source

fn starts_with_ignore_ascii_case_with_uppercase_multiple<S: AsRef<[u8]>>( &self, bs: &[S], ) -> Option<usize>

Returns Some(usize) if one of the given uppercase string slices case-insensitively (only ignoring ASCII case) matches a prefix of this string slice.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§