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§
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 Methods§
fn is_non_interactive(&self) -> bool
Object Safety§
This trait is not object safe.