[][src]Trait starts_ends_with_caseless::StartsWithCaselessMultiple

pub trait StartsWithCaselessMultiple {
    fn starts_with_caseless_ascii_multiple<S: AsRef<str>>(
        &self,
        s: &[S]
    ) -> Option<usize>;
fn starts_with_caseless_multiple<S: AsRef<str>>(
        &self,
        s: S
    ) -> Option<usize>; }

To extend types which implement AsRef<str> to have starts_with_caseless_ascii_multiple and starts_with_caseless_multiple methods.

Required methods

fn starts_with_caseless_ascii_multiple<S: AsRef<str>>(
    &self,
    s: &[S]
) -> Option<usize>

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

fn starts_with_caseless_multiple<S: AsRef<str>>(&self, s: S) -> Option<usize>

Returns Some(usize) if the given string slices case-insensitively (using case-folding) matches a prefix of this string slice .

Loading content...

Implementors

impl<T: AsRef<str>> StartsWithCaselessMultiple for T[src]

Loading content...