snarkvm_circuit_environment::traits

Trait FromBits

Source
pub trait FromBits {
    type Boolean: BooleanTrait;

    // Required methods
    fn from_bits_le(bits_le: &[Self::Boolean]) -> Self
       where Self: Sized;
    fn from_bits_be(bits_be: &[Self::Boolean]) -> Self
       where Self: Sized;
}
Expand description

Unary operator for instantiating from bits.

Required Associated Types§

Required Methods§

Source

fn from_bits_le(bits_le: &[Self::Boolean]) -> Self
where Self: Sized,

Source

fn from_bits_be(bits_be: &[Self::Boolean]) -> Self
where Self: Sized,

Implementors§