Trait str_utils::EqIgnoreCase [−][src]
pub trait EqIgnoreCase { fn eq_ignore_case<S: AsRef<str>>(&self, b: S) -> bool; }
To extend types which implement AsRef<str>
to have a eq_ignore_case
method.
However, it is not recommended to use this trait. Try to wrap your type inside UniCase
by yourself instead.
extern crate unicase; use unicase::UniCase; let a = UniCase::new("Maße"); let b = UniCase::new("MASSE"); assert_eq!(a, b);
Required methods
fn eq_ignore_case<S: AsRef<str>>(&self, b: S) -> bool
[src]
Returns true
if the given string slice case-insensitively (using case-folding) matches this string slice.
Implementors
impl<T: AsRef<str>> EqIgnoreCase for T
[src]
impl<T: AsRef<str>> EqIgnoreCase for T
[src]