pub trait FromBits: Sized {
    // Required methods
    fn from_bits_le(bits: &[bool]) -> Result<Self, Error>;
    fn from_bits_be(bits: &[bool]) -> Result<Self, Error>;
}

Required Methods§

fn from_bits_le(bits: &[bool]) -> Result<Self, Error>

Reads Self from a boolean array in little-endian order.

fn from_bits_be(bits: &[bool]) -> Result<Self, Error>

Reads Self from a boolean array in big-endian order.

Object Safety§

This trait is not object safe.

Implementors§

§

impl<E> FromBits for Boolean<E>
where E: Environment,

§

impl<E> FromBits for Field<E>
where E: Environment,

§

impl<E> FromBits for Group<E>
where E: Environment,

§

impl<E> FromBits for Scalar<E>
where E: Environment,

§

impl<E, I> FromBits for Integer<E, I>
where E: Environment, I: IntegerType,