Trait str_utils::EndsWithIgnoreCase
source · pub trait EndsWithIgnoreCase {
// Required method
fn ends_with_ignore_case<S: AsRef<str>>(&self, b: S) -> bool;
}
Expand description
To extend types which implement AsRef<str>
to have a ends_with_ignore_case
method.
Required Methods§
sourcefn ends_with_ignore_case<S: AsRef<str>>(&self, b: S) -> bool
fn ends_with_ignore_case<S: AsRef<str>>(&self, b: S) -> bool
Returns true
if the given string slice case-insensitively (using case-folding) matches a suffix of this string slice.
NOTE: This method may allocate heap memory.