[][src]Trait starts_ends_with_caseless::StartsWithCaseless

pub trait StartsWithCaseless {
    fn starts_with_caseless_ascii<S: AsRef<str>>(&self, s: S) -> bool;
fn starts_with_caseless<S: AsRef<str>>(&self, s: S) -> bool; }

To extend types which implement AsRef<str> to have starts_with_caseless_ascii and starts_with_caseless methods.

Required methods

fn starts_with_caseless_ascii<S: AsRef<str>>(&self, s: S) -> bool

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

fn starts_with_caseless<S: AsRef<str>>(&self, s: S) -> bool

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

Loading content...

Implementors

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

Loading content...