CtGt

Trait CtGt 

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

Constant time greater than.

Required Methods§

Source

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

Compute whether self > other 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.

Implementations on Foreign Types§

Source§

impl CtGt for Ordering

Source§

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

Source§

impl CtGt for u8

Source§

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

Source§

impl CtGt for u16

Source§

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

Source§

impl CtGt for u32

Source§

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

Source§

impl CtGt for u64

Source§

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

Source§

impl CtGt for u128

Source§

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

Implementors§