Function rocket::http::uncased::uncased_eq
pub fn uncased_eq<S1, S2>(s1: S1, s2: S2) -> bool
Expand description
Returns true if s1
and s2
are equal without considering case.
That is, for ASCII strings, this function returns s1.to_lower() == s2.to_lower()
, but does it in a much faster way.