pub trait FromBoolean {
    type Boolean: BooleanTrait;

    // Required method
    fn from_boolean(boolean: &Self::Boolean) -> Self
       where Self: Sized;
}
Expand description

Unary operator for instantiating from a boolean.

Required Associated Types§

Required Methods§

source

fn from_boolean(boolean: &Self::Boolean) -> Selfwhere Self: Sized,

Trait Implementations§

source§

impl<E> Metrics<dyn FromBoolean<Boolean = Boolean<E>>> for Field<E>where E: Environment,

§

type Case = ()

source§

fn count( _case: &<Field<E> as Metrics<dyn FromBoolean<Boolean = Boolean<E>>>>::Case ) -> Count

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

impl<E> OutputMode<dyn FromBoolean<Boolean = Boolean<E>>> for Field<E>where E: Environment,

§

type Case = Mode

source§

fn output_mode( case: &<Field<E> as OutputMode<dyn FromBoolean<Boolean = Boolean<E>>>>::Case ) -> Mode

Returns the mode of the output.

Implementors§

source§

impl<E> FromBoolean for Field<E>where E: Environment,

§

type Boolean = Boolean<E>