pub trait Selectable<F: ScalarField, Pt> {
// Required methods
fn select(
&self,
ctx: &mut Context<F>,
a: Pt,
b: Pt,
sel: AssignedValue<F>,
) -> Pt;
fn select_by_indicator(
&self,
ctx: &mut Context<F>,
a: &impl AsRef<[Pt]>,
coeffs: &[AssignedValue<F>],
) -> Pt;
}
Required Methods§
fn select( &self, ctx: &mut Context<F>, a: Pt, b: Pt, sel: AssignedValue<F>, ) -> Pt
fn select_by_indicator( &self, ctx: &mut Context<F>, a: &impl AsRef<[Pt]>, coeffs: &[AssignedValue<F>], ) -> Pt
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.