snarkvm_circuit_environment::traits

Trait FromBoolean

Source
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) -> Self
where Self: Sized,

Implementors§