pub trait ConstTimeEq<T: BytewiseEquality + ?Sized = Self> {
    // Required method
    fn ct_eq(&self, other: &T) -> bool;

    // Provided method
    fn ct_ne(&self, other: &T) -> bool { ... }
}

Required Methods§

source

fn ct_eq(&self, other: &T) -> bool

Provided Methods§

source

fn ct_ne(&self, other: &T) -> bool

Implementations on Foreign Types§

source§

impl<T> ConstTimeEq for [T]where T: Eq + BytewiseEquality,

source§

default fn ct_eq(&self, other: &[T]) -> bool

Implementors§