pub trait ToBits: Sized {
    // Required methods
    fn write_bits_le(&self, vec: &mut Vec<bool>);
    fn write_bits_be(&self, vec: &mut Vec<bool>);

    // Provided methods
    fn to_bits_le(&self) -> Vec<bool> { ... }
    fn to_bits_be(&self) -> Vec<bool> { ... }
    fn num_bits() -> Option<usize> { ... }
}

Required Methods§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Writes self into the given vector as a boolean array in little-endian order.

fn write_bits_be(&self, vec: &mut Vec<bool>)

Writes self into the given vector as a boolean array in big-endian order.

Provided Methods§

fn to_bits_le(&self) -> Vec<bool>

Returns self as a boolean array in little-endian order.

fn to_bits_be(&self) -> Vec<bool>

Returns self as a boolean array in big-endian order.

fn num_bits() -> Option<usize>

An optional indication of how many bits an object can be represented with.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl ToBits for bool

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits.

§

impl ToBits for i8

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in little-endian order.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in big-endian order.

§

fn num_bits() -> Option<usize>

§

impl ToBits for i16

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in little-endian order.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in big-endian order.

§

fn num_bits() -> Option<usize>

§

impl ToBits for i32

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in little-endian order.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in big-endian order.

§

fn num_bits() -> Option<usize>

§

impl ToBits for i64

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in little-endian order.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in big-endian order.

§

fn num_bits() -> Option<usize>

§

impl ToBits for i128

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in little-endian order.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in big-endian order.

§

fn num_bits() -> Option<usize>

§

impl ToBits for u8

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in little-endian order.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in big-endian order.

§

fn num_bits() -> Option<usize>

§

impl ToBits for u16

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in little-endian order.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in big-endian order.

§

fn num_bits() -> Option<usize>

§

impl ToBits for u32

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in little-endian order.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in big-endian order.

§

fn num_bits() -> Option<usize>

§

impl ToBits for u64

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in little-endian order.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in big-endian order.

§

fn num_bits() -> Option<usize>

§

impl ToBits for u128

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in little-endian order.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns self as a boolean array in big-endian order.

§

fn num_bits() -> Option<usize>

§

impl ToBits for String

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits.

§

impl<'a, C0, C1> ToBits for &'a (C0, C1)
where C0: ToBits, C1: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<'a, C0, C1, C2> ToBits for &'a (C0, C1, C2)
where C0: ToBits, C1: ToBits, C2: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<'a, C0, C1, C2, C3> ToBits for &'a (C0, C1, C2, C3)
where C0: ToBits, C1: ToBits, C2: ToBits, C3: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<'a, C0, C1, C2, C3, C4> ToBits for &'a (C0, C1, C2, C3, C4)
where C0: ToBits, C1: ToBits, C2: ToBits, C3: ToBits, C4: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<'a, C0, C1, C2, C3, C4, C5> ToBits for &'a (C0, C1, C2, C3, C4, C5)
where C0: ToBits, C1: ToBits, C2: ToBits, C3: ToBits, C4: ToBits, C5: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<'a, C0, C1, C2, C3, C4, C5, C6> ToBits for &'a (C0, C1, C2, C3, C4, C5, C6)
where C0: ToBits, C1: ToBits, C2: ToBits, C3: ToBits, C4: ToBits, C5: ToBits, C6: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<'a, C0, C1, C2, C3, C4, C5, C6, C7> ToBits for &'a (C0, C1, C2, C3, C4, C5, C6, C7)
where C0: ToBits, C1: ToBits, C2: ToBits, C3: ToBits, C4: ToBits, C5: ToBits, C6: ToBits, C7: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<'a, C0, C1, C2, C3, C4, C5, C6, C7, C8> ToBits for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8)
where C0: ToBits, C1: ToBits, C2: ToBits, C3: ToBits, C4: ToBits, C5: ToBits, C6: ToBits, C7: ToBits, C8: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<'a, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9> ToBits for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)
where C0: ToBits, C1: ToBits, C2: ToBits, C3: ToBits, C4: ToBits, C5: ToBits, C6: ToBits, C7: ToBits, C8: ToBits, C9: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<'a, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10> ToBits for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)
where C0: ToBits, C1: ToBits, C2: ToBits, C3: ToBits, C4: ToBits, C5: ToBits, C6: ToBits, C7: ToBits, C8: ToBits, C9: ToBits, C10: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<C0, C1> ToBits for (C0, C1)
where C0: ToBits, C1: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<C0, C1, C2> ToBits for (C0, C1, C2)
where C0: ToBits, C1: ToBits, C2: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<C0, C1, C2, C3> ToBits for (C0, C1, C2, C3)
where C0: ToBits, C1: ToBits, C2: ToBits, C3: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<C0, C1, C2, C3, C4> ToBits for (C0, C1, C2, C3, C4)
where C0: ToBits, C1: ToBits, C2: ToBits, C3: ToBits, C4: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<C0, C1, C2, C3, C4, C5> ToBits for (C0, C1, C2, C3, C4, C5)
where C0: ToBits, C1: ToBits, C2: ToBits, C3: ToBits, C4: ToBits, C5: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<C0, C1, C2, C3, C4, C5, C6> ToBits for (C0, C1, C2, C3, C4, C5, C6)
where C0: ToBits, C1: ToBits, C2: ToBits, C3: ToBits, C4: ToBits, C5: ToBits, C6: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<C0, C1, C2, C3, C4, C5, C6, C7> ToBits for (C0, C1, C2, C3, C4, C5, C6, C7)
where C0: ToBits, C1: ToBits, C2: ToBits, C3: ToBits, C4: ToBits, C5: ToBits, C6: ToBits, C7: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8> ToBits for (C0, C1, C2, C3, C4, C5, C6, C7, C8)
where C0: ToBits, C1: ToBits, C2: ToBits, C3: ToBits, C4: ToBits, C5: ToBits, C6: ToBits, C7: ToBits, C8: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9> ToBits for (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)
where C0: ToBits, C1: ToBits, C2: ToBits, C3: ToBits, C4: ToBits, C5: ToBits, C6: ToBits, C7: ToBits, C8: ToBits, C9: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10> ToBits for (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)
where C0: ToBits, C1: ToBits, C2: ToBits, C3: ToBits, C4: ToBits, C5: ToBits, C6: ToBits, C7: ToBits, C8: ToBits, C9: ToBits, C10: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits from the circuits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits from the circuits.

§

impl<C> ToBits for &[C]
where C: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits.

§

impl<C> ToBits for Vec<C>
where C: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits.

§

impl<C, const N: usize> ToBits for [C; N]
where C: ToBits,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of little-endian bits.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

A helper method to return a concatenated list of big-endian bits.

§

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

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Outputs the little-endian bit representation of self.to_x_coordinate() without trailing zeros.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Outputs the big-endian bit representation of self.to_x_coordinate() without leading zeros.

§

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

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Outputs self in a vector.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Outputs self in a vector.

§

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

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Outputs the little-endian bit representation of self without trailing zeros.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Outputs the big-endian bit representation of self without leading zeros.

§

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

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Outputs the little-endian bit representation of self.to_x_coordinate() without trailing zeros.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Outputs the big-endian bit representation of self.to_x_coordinate() without leading zeros.

§

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

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Outputs the little-endian bit representation of self without trailing zeros.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Outputs the big-endian bit representation of self without leading zeros.

§

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

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Outputs the little-endian bit representation of self without trailing zeros.

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Outputs the big-endian bit representation of self without leading zeros.

source§

impl<N> ToBits for &Literal<N>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns the little-endian bits of the literal.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns the big-endian bits of the literal.

source§

impl<N> ToBits for &Identifier<N>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns the little-endian bits of the identifier.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns the big-endian bits of the identifier.

source§

impl<N> ToBits for &ProgramID<N>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns the little-endian bits of the program ID.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns the big-endian bits of the program ID.

source§

impl<N> ToBits for Argument<N>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns the argument as a list of little-endian bits.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns the argument as a list of big-endian bits.

source§

impl<N> ToBits for Literal<N>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns the little-endian bits of the literal.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns the big-endian bits of the literal.

source§

impl<N> ToBits for Plaintext<N>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns this plaintext as a list of little-endian bits.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns this plaintext as a list of big-endian bits.

source§

impl<N> ToBits for Entry<N, Plaintext<N>>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns this entry as a list of little-endian bits.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns this entry as a list of big-endian bits.

source§

impl<N> ToBits for Entry<N, Ciphertext<N>>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns this entry as a list of little-endian bits.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns this entry as a list of big-endian bits.

source§

impl<N> ToBits for Owner<N, Plaintext<N>>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns self as a boolean vector in little-endian order.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns self as a boolean vector in big-endian order.

source§

impl<N> ToBits for Owner<N, Ciphertext<N>>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns self as a boolean vector in little-endian order.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns self as a boolean vector in big-endian order.

source§

impl<N> ToBits for Value<N>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns the stack value as a list of little-endian bits.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns the stack value as a list of big-endian bits.

source§

impl<N> ToBits for ComputeKey<N>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns the little-endian bits of the compute key.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns the big-endian bits of the compute key.

source§

impl<N> ToBits for Signature<N>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns the little-endian bits of the signature.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns the big-endian bits of the signature.

source§

impl<N> ToBits for Ciphertext<N>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns this ciphertext as a list of little-endian bits.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns this ciphertext as a list of big-endian bits.

source§

impl<N> ToBits for Future<N>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns the future as a list of little-endian bits.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns the future as a list of big-endian bits.

source§

impl<N> ToBits for Identifier<N>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns the little-endian bits of the identifier.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns the big-endian bits of the identifier.

source§

impl<N> ToBits for Record<N, Plaintext<N>>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns this data as a list of little-endian bits.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns this data as a list of big-endian bits.

source§

impl<N> ToBits for Record<N, Ciphertext<N>>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns this data as a list of little-endian bits.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns this data as a list of big-endian bits.

source§

impl<N> ToBits for ProgramID<N>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns the little-endian bits of the program ID.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns the big-endian bits of the program ID.

source§

impl<N> ToBits for HeaderLeaf<N>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns the little-endian bits of the Merkle leaf.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns the big-endian bits of the Merkle leaf.

source§

impl<N> ToBits for TransactionLeaf<N>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns the little-endian bits of the Merkle leaf.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns the big-endian bits of the Merkle leaf.

source§

impl<N> ToBits for TransitionLeaf<N>
where N: Network,

source§

fn write_bits_le(&self, vec: &mut Vec<bool>)

Returns the little-endian bits of the Merkle leaf.

source§

fn write_bits_be(&self, vec: &mut Vec<bool>)

Returns the big-endian bits of the Merkle leaf.

§

impl<P> ToBits for Fp2<P>
where P: Fp2Parameters,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

§

impl<P> ToBits for Fp6<P>
where P: Fp6Parameters,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

§

impl<P> ToBits for Fp12<P>
where P: Fp12Parameters,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

§

impl<P> ToBits for Fp256<P>
where P: Fp256Parameters,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

§

fn num_bits() -> Option<usize>

§

impl<P> ToBits for Fp384<P>
where P: Fp384Parameters,

§

fn write_bits_le(&self, vec: &mut Vec<bool>)

§

fn write_bits_be(&self, vec: &mut Vec<bool>)

§

fn num_bits() -> Option<usize>

Implementors§

§

impl ToBits for BigInteger256

§

impl ToBits for BigInteger384