pub trait ConstantTimeResult<T, E> {
// Required methods
fn ct_is_ok(&self) -> bool;
fn ct_is_err(&self) -> bool;
fn ct_map<U, F, G>(self, ok_fn: F, err_fn: G) -> U
where F: FnOnce(T) -> U,
G: FnOnce(E) -> U,
U: ConditionallySelectable;
}
Expand description
Trait for checking if an operation succeeded in constant time
Required 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.