pub trait CtLesser: Sized {
// Required method
fn ct_lt(a: Self, b: Self) -> Choice;
// Provided method
fn ct_ge(a: Self, b: Self) -> Choice { ... }
}Expand description
Check in constant time if the left object is lesser than right object
This equivalent to the < operator found in the core library.
Required Methods§
Provided Methods§
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.