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,

Trait Implementations§

Source§

impl<E> Metrics<dyn FromBits<Boolean = Boolean<E>>> for Field<E>
where E: Environment,

Source§

type Case = Vec<Mode>

Source§

fn count( _modes: &<Field<E> as Metrics<dyn FromBits<Boolean = Boolean<E>>>>::Case, ) -> Count

Returns the number of constants, public inputs, private inputs, and constraints.
Source§

impl<E> OutputMode<dyn FromBits<Boolean = Boolean<E>>> for Field<E>
where E: Environment,

Source§

type Case = Vec<Mode>

Source§

fn output_mode( case: &<Field<E> as OutputMode<dyn FromBits<Boolean = Boolean<E>>>>::Case, ) -> Mode

Returns the mode of the output.

Implementors§

Source§

impl<A> FromBits for Plaintext<A>
where A: Aleo,

Source§

impl<A> FromBits for Ciphertext<A>
where A: Aleo,

Source§

impl<A> FromBits for ComputeKey<A>
where A: Aleo,

Source§

impl<A> FromBits for Identifier<A>
where A: Aleo,

Source§

impl<A> FromBits for Signature<A>
where A: Aleo,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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