pub trait GateType: Display {
// Required methods
fn make_constant(val: u16) -> Self;
fn make_garbler_input(id: usize) -> Self;
fn make_evaluator_input(id: usize) -> Self;
}Expand description
Trait representing circuit gates that can be used in CircuitType
Required Methods§
Sourcefn make_constant(val: u16) -> Self
fn make_constant(val: u16) -> Self
Generate constant gate
Sourcefn make_garbler_input(id: usize) -> Self
fn make_garbler_input(id: usize) -> Self
Generate garbler input gate
Sourcefn make_evaluator_input(id: usize) -> Self
fn make_evaluator_input(id: usize) -> Self
Generate evaluator input gate
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.