Trait snarkvm_circuit::prelude::FromBoolean
source · [−]pub trait FromBoolean {
type Boolean: BooleanTrait;
fn from_boolean(boolean: &Self::Boolean) -> Self;
}
Expand description
Unary operator for instantiating from a boolean.
Required Associated Types
source
type Boolean: BooleanTrait
Required Methods
source
fn from_boolean(boolean: &Self::Boolean) -> Self
Trait Implementations
impl<E> Metrics<dyn FromBoolean<Boolean = Boolean<E>> + 'static> for Field<E> where
E: Environment,
impl<E> Metrics<dyn FromBoolean<Boolean = Boolean<E>> + 'static> for Field<E> where
E: Environment,
impl<E> OutputMode<dyn FromBoolean<Boolean = Boolean<E>> + 'static> for Field<E> where
E: Environment,
impl<E> OutputMode<dyn FromBoolean<Boolean = Boolean<E>> + 'static> for Field<E> where
E: Environment,
type Case = Mode
fn output_mode(
case: &<Field<E> as OutputMode<dyn FromBoolean<Boolean = Boolean<E>> + 'static>>::Case
) -> Mode
fn output_mode(
case: &<Field<E> as OutputMode<dyn FromBoolean<Boolean = Boolean<E>> + 'static>>::Case
) -> Mode
Returns the mode of the output.