Trait snarkvm_circuit::environment::traits::from::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§
type Boolean: BooleanTrait
Required Methods§
fn from_boolean(boolean: &Self::Boolean) -> Selfwhere Self: Sized,
Trait Implementations§
§impl<E> Metrics<dyn FromBoolean<Boolean = Boolean<E>>> for Field<E>where
E: Environment,
impl<E> Metrics<dyn FromBoolean<Boolean = Boolean<E>>> for Field<E>where E: Environment,
§impl<E> OutputMode<dyn FromBoolean<Boolean = Boolean<E>>> for Field<E>where
E: Environment,
impl<E> OutputMode<dyn FromBoolean<Boolean = Boolean<E>>> for Field<E>where E: Environment,
type Case = Mode
§fn output_mode(
case: &<Field<E> as OutputMode<dyn FromBoolean<Boolean = Boolean<E>>>>::Case
) -> Mode
fn output_mode( case: &<Field<E> as OutputMode<dyn FromBoolean<Boolean = Boolean<E>>>>::Case ) -> Mode
Returns the mode of the output.