pub trait FromBits {
    type Boolean: BooleanTrait;

    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§

Trait Implementations§

Returns the number of constants, public inputs, private inputs, and constraints.
Returns the mode of the output.

Implementations on Foreign Types§

Initializes a new integer from a list of little-endian bits with trailing zeros.

Initializes a new integer from a list of big-endian bits with leading zeros.

Implementors§