Function rocket_http::uncased::uncased_eq [−][src]
pub fn uncased_eq<S1: AsRef<str>, S2: AsRef<str>>(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.