pub trait TernaryOp: BinaryOp {
// Provided methods
fn create_maj3(
&mut self,
a: Self::Signal,
b: Self::Signal,
c: Self::Signal,
) -> Self::Signal { ... }
fn create_ite(
&mut self,
condition: Self::Signal,
then: Self::Signal,
otherwise: Self::Signal,
) -> Self::Signal { ... }
fn create_xor3(
&mut self,
a: Self::Signal,
b: Self::Signal,
c: Self::Signal,
) -> Self::Signal { ... }
}Expand description
Logic operations with three inputs.
Provided Methods§
Sourcefn create_maj3(
&mut self,
a: Self::Signal,
b: Self::Signal,
c: Self::Signal,
) -> Self::Signal
fn create_maj3( &mut self, a: Self::Signal, b: Self::Signal, c: Self::Signal, ) -> Self::Signal
Create three-input majority 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.