pub trait CtEqSlice: CtEq + Sized {
// Provided methods
fn ct_eq_slice(a: &[Self], b: &[Self]) -> Choice { ... }
fn ct_ne_slice(a: &[Self], b: &[Self]) -> Choice { ... }
}Expand description
Provided Methods§
Sourcefn ct_eq_slice(a: &[Self], b: &[Self]) -> Choice
fn ct_eq_slice(a: &[Self], b: &[Self]) -> Choice
Determine if a is equal to b in constant-time.
Sourcefn ct_ne_slice(a: &[Self], b: &[Self]) -> Choice
fn ct_ne_slice(a: &[Self], b: &[Self]) -> Choice
Determine if a is NOT equal to b in constant-time.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.