Gouzi Mohaled
Ajout du dossier src
d8435ba
raw
history blame contribute delete
212 Bytes
/// Constant-time equality for String types
#[inline]
pub fn ct_eq(lhs: impl AsRef<str>, rhs: impl AsRef<str>) -> bool {
constant_time_eq::constant_time_eq(lhs.as_ref().as_bytes(), rhs.as_ref().as_bytes())
}