pub trait EqIgnoreAsciiCase {
// Required methods
fn eq_ignore_ascii_case_with_lowercase<S: AsRef<[u8]>>(&self, b: S) -> bool;
fn eq_ignore_ascii_case_with_uppercase<S: AsRef<[u8]>>(&self, b: S) -> bool;
}Expand description
To extend [u8] and str to have eq_ignore_ascii_case_with_lowercase and eq_ignore_ascii_case_with_uppercase methods.
These methods are slightly faster than eq_ignore_ascii_case.
Required Methods§
Sourcefn eq_ignore_ascii_case_with_lowercase<S: AsRef<[u8]>>(&self, b: S) -> bool
fn eq_ignore_ascii_case_with_lowercase<S: AsRef<[u8]>>(&self, b: S) -> bool
Returns true if the given lowercase string slice case-insensitively (only ignoring ASCII case) matches this string slice.
Sourcefn eq_ignore_ascii_case_with_uppercase<S: AsRef<[u8]>>(&self, b: S) -> bool
fn eq_ignore_ascii_case_with_uppercase<S: AsRef<[u8]>>(&self, b: S) -> bool
Returns true if the given uppercase string slice case-insensitively (only ignoring ASCII case) matches this string slice.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.