pub trait ConditionallySelectable: Sized {
// Required method
fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self;
}Expand description
A type which can be conditionally selected with a loose promise of constant time.
Compared to subtle::ConditionallySelectable, this trait does not require
Copy, but the internal elements should be Copy for the promise to loosely hold.
Required Methods§
Sourcefn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
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.