Trait GateType

Source
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§

Source

fn make_constant(val: u16) -> Self

Generate constant gate

Source

fn make_garbler_input(id: usize) -> Self

Generate garbler input gate

Source

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.

Implementors§