pub trait CtLookup<Idx> {
type Output: CtAssign;
// Required method
fn ct_lookup(&self, index: Idx) -> CtOption<Self::Output>;
}Expand description
Constant-time lookup by index, similar to the Index trait, but returning an owned result in
constant-time.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".