unicase

Function eq_ascii

Source
pub fn eq_ascii<S: AsRef<str> + ?Sized>(left: &S, right: &S) -> bool
Expand description

Compare two string-like types for case-less equality, ignoring ASCII case.

Equivalent to Ascii::new(left) == Ascii::new(right).