Trait seec::protocols::Gate

source ·
pub trait Gate<Plain>: Clone + Hash + PartialOrd + PartialEq + Send + Sync + Debug + 'static {
    type DimTy: Dimension;

    // Required methods
    fn is_interactive(&self) -> bool;
    fn input_size(&self) -> usize;
    fn as_base_gate(&self) -> Option<&BaseGate<Plain, Self::DimTy>>;
    fn wrap_base_gate(base_gate: BaseGate<Plain, Self::DimTy>) -> Self;

    // Provided method
    fn is_non_interactive(&self) -> bool { ... }
}

Required Associated Types§

Required Methods§

source

fn is_interactive(&self) -> bool

source

fn input_size(&self) -> usize

source

fn as_base_gate(&self) -> Option<&BaseGate<Plain, Self::DimTy>>

source

fn wrap_base_gate(base_gate: BaseGate<Plain, Self::DimTy>) -> Self

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Gate<PartialShare> for seec::protocols::tensor_aby2::BooleanGate

source§

impl Gate<bool> for seec::protocols::aby2::BooleanGate

source§

impl Gate<bool> for seec::protocols::boolean_gmw::BooleanGate

source§

impl<P: Plain, Dim: Dimension> Gate<P> for BaseGate<P, Dim>

§

type DimTy = Dim

source§

impl<R: Ring> Gate<Mixed<R>> for MixedGate<R>

source§

impl<R: Ring> Gate<R> for ArithmeticGate<R>