
String::compare::constanttime provides one function, equals(), which takes two strings of the same lengh as arguments. it will return true if they are string-wise identical and false otherwise, just like eq. however, comparing any two differing strings will take a fixed amount of time, unlike eq.