Trait Nor

Source
pub trait Nor<Rhs = Self>
where Rhs: ?Sized,
{ type Output; // Required method fn nor(&self, other: &Rhs) -> Self::Output; }
Expand description

Binary operator for performing (NOT a) AND (NOT b).

Required Associated Types§

Required Methods§

Source

fn nor(&self, other: &Rhs) -> Self::Output

Returns (NOT a) AND (NOT b).

Trait Implementations§

Source§

impl<E> Metrics<dyn Nor<Boolean<E>, Output = Boolean<E>>> for Boolean<E>
where E: Environment,

Source§

type Case = (Mode, Mode)

Source§

fn count( case: &<Boolean<E> as Metrics<dyn Nor<Boolean<E>, Output = Boolean<E>>>>::Case, ) -> Count

Returns the number of constants, public inputs, private inputs, and constraints.
Source§

impl<E> OutputMode<dyn Nor<Boolean<E>, Output = Boolean<E>>> for Boolean<E>
where E: Environment,

Source§

type Case = (CircuitType<Boolean<E>>, CircuitType<Boolean<E>>)

Source§

fn output_mode( case: &<Boolean<E> as OutputMode<dyn Nor<Boolean<E>, Output = Boolean<E>>>>::Case, ) -> Mode

Returns the mode of the output.

Implementations on Foreign Types§

Source§

impl<E> Nor for Boolean<E>
where E: Environment,

Source§

fn nor(&self, other: &Boolean<E>) -> <Boolean<E> as Nor>::Output

Returns the bitwise NOR of self and other.

Source§

type Output = Boolean<E>

Implementors§

Source§

impl<E> Nor for snarkvm_circuit::modules::Boolean<E>
where E: Environment,