Skip to main content

ConstantTimeEq

Trait ConstantTimeEq 

Source
pub trait ConstantTimeEq {
    // Required method
    fn ct_eq(&self, other: &Self) -> Choice;
}
Expand description

Compare two values without data-dependent early exit.

Required Methods§

Source

fn ct_eq(&self, other: &Self) -> Choice

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ConstantTimeEq for u8

Source§

fn ct_eq(&self, other: &Self) -> Choice

Source§

impl ConstantTimeEq for u16

Source§

fn ct_eq(&self, other: &Self) -> Choice

Source§

impl ConstantTimeEq for u32

Source§

fn ct_eq(&self, other: &Self) -> Choice

Source§

impl ConstantTimeEq for u64

Source§

fn ct_eq(&self, other: &Self) -> Choice

Source§

impl ConstantTimeEq for u128

Source§

fn ct_eq(&self, other: &Self) -> Choice

Source§

impl ConstantTimeEq for usize

Source§

fn ct_eq(&self, other: &Self) -> Choice

Source§

impl<T: ConstantTimeEq, const N: usize> ConstantTimeEq for [T; N]

Source§

fn ct_eq(&self, other: &Self) -> Choice

Source§

impl<T: ConstantTimeEq> ConstantTimeEq for [T]

Source§

fn ct_eq(&self, other: &Self) -> Choice

Implementors§