Trait str_utils::EndsWithIgnoreAsciiCase [−][src]
pub trait EndsWithIgnoreAsciiCase { fn ends_with_ignore_ascii_case<S: AsRef<[u8]>>(&self, b: S) -> bool; fn ends_with_ignore_ascii_case_with_lowercase<S: AsRef<[u8]>>(
&self,
b: S
) -> bool; fn ends_with_ignore_ascii_case_with_uppercase<S: AsRef<[u8]>>(
&self,
b: S
) -> bool; }
To extend types which implement AsRef<[u8]>
to have ends_with_ignore_ascii_case
, ends_with_ignore_ascii_case_with_lowercase
and ends_with_ignore_ascii_case_with_uppercase
methods.
Required methods
fn ends_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 suffix of this string slice.
fn ends_with_ignore_ascii_case_with_lowercase<S: AsRef<[u8]>>(
&self,
b: S
) -> bool
[src]
&self,
b: S
) -> bool
Returns true
if the given lowercase string slice case-insensitively (only ignoring ASCII case) matches a suffix of this string slice.
fn ends_with_ignore_ascii_case_with_uppercase<S: AsRef<[u8]>>(
&self,
b: S
) -> bool
[src]
&self,
b: S
) -> bool
Returns true
if the given uppercase string slice case-insensitively (only ignoring ASCII case) matches a suffix of this string slice.
Implementors
impl<T: AsRef<[u8]>> EndsWithIgnoreAsciiCase for T
[src]
impl<T: AsRef<[u8]>> EndsWithIgnoreAsciiCase for T
[src]fn ends_with_ignore_ascii_case<S: AsRef<[u8]>>(&self, b: S) -> bool
[src]
fn ends_with_ignore_ascii_case_with_lowercase<S: AsRef<[u8]>>(
&self,
b: S
) -> bool
[src]
&self,
b: S
) -> bool
fn ends_with_ignore_ascii_case_with_uppercase<S: AsRef<[u8]>>(
&self,
b: S
) -> bool
[src]
&self,
b: S
) -> bool