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§
Sourcefn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
Writes self
into the given vector as a boolean array in little-endian order.
Sourcefn write_bits_be(&self, vec: &mut Vec<bool>)
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§
Sourcefn to_bits_le(&self) -> Vec<bool>
fn to_bits_le(&self) -> Vec<bool>
Returns self
as a boolean array in little-endian order.
Sourcefn to_bits_be(&self) -> Vec<bool>
fn to_bits_be(&self) -> Vec<bool>
Returns self
as a boolean array in big-endian order.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl ToBits for bool
impl ToBits for bool
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits.
Source§impl ToBits for String
impl ToBits for String
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits.
Source§impl<'a, C0, C1> ToBits for &'a (C0, C1)
impl<'a, C0, C1> ToBits for &'a (C0, C1)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§impl<'a, C0, C1, C2> ToBits for &'a (C0, C1, C2)
impl<'a, C0, C1, C2> ToBits for &'a (C0, C1, C2)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§impl<'a, C0, C1, C2, C3> ToBits for &'a (C0, C1, C2, C3)
impl<'a, C0, C1, C2, C3> ToBits for &'a (C0, C1, C2, C3)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§impl<'a, C0, C1, C2, C3, C4> ToBits for &'a (C0, C1, C2, C3, C4)
impl<'a, C0, C1, C2, C3, C4> ToBits for &'a (C0, C1, C2, C3, C4)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§impl<'a, C0, C1, C2, C3, C4, C5> ToBits for &'a (C0, C1, C2, C3, C4, C5)
impl<'a, C0, C1, C2, C3, C4, C5> ToBits for &'a (C0, C1, C2, C3, C4, C5)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§impl<'a, C0, C1, C2, C3, C4, C5, C6> ToBits for &'a (C0, C1, C2, C3, C4, C5, C6)
impl<'a, C0, C1, C2, C3, C4, C5, C6> ToBits for &'a (C0, C1, C2, C3, C4, C5, C6)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§impl<'a, C0, C1, C2, C3, C4, C5, C6, C7> ToBits for &'a (C0, C1, C2, C3, C4, C5, C6, C7)
impl<'a, C0, C1, C2, C3, C4, C5, C6, C7> ToBits for &'a (C0, C1, C2, C3, C4, C5, C6, C7)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§impl<'a, C0, C1, C2, C3, C4, C5, C6, C7, C8> ToBits for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8)
impl<'a, C0, C1, C2, C3, C4, C5, C6, C7, C8> ToBits for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§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)
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)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§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)
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)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§impl<C0, C1> ToBits for (C0, C1)
impl<C0, C1> ToBits for (C0, C1)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§impl<C0, C1, C2> ToBits for (C0, C1, C2)
impl<C0, C1, C2> ToBits for (C0, C1, C2)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§impl<C0, C1, C2, C3> ToBits for (C0, C1, C2, C3)
impl<C0, C1, C2, C3> ToBits for (C0, C1, C2, C3)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§impl<C0, C1, C2, C3, C4> ToBits for (C0, C1, C2, C3, C4)
impl<C0, C1, C2, C3, C4> ToBits for (C0, C1, C2, C3, C4)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§impl<C0, C1, C2, C3, C4, C5> ToBits for (C0, C1, C2, C3, C4, C5)
impl<C0, C1, C2, C3, C4, C5> ToBits for (C0, C1, C2, C3, C4, C5)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§impl<C0, C1, C2, C3, C4, C5, C6> ToBits for (C0, C1, C2, C3, C4, C5, C6)
impl<C0, C1, C2, C3, C4, C5, C6> ToBits for (C0, C1, C2, C3, C4, C5, C6)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§impl<C0, C1, C2, C3, C4, C5, C6, C7> ToBits for (C0, C1, C2, C3, C4, C5, C6, C7)
impl<C0, C1, C2, C3, C4, C5, C6, C7> ToBits for (C0, C1, C2, C3, C4, C5, C6, C7)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§impl<C0, C1, C2, C3, C4, C5, C6, C7, C8> ToBits for (C0, C1, C2, C3, C4, C5, C6, C7, C8)
impl<C0, C1, C2, C3, C4, C5, C6, C7, C8> ToBits for (C0, C1, C2, C3, C4, C5, C6, C7, C8)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9> ToBits for (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)
impl<C0, C1, C2, C3, C4, C5, C6, C7, C8, C9> ToBits for (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§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)
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)
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits from the circuits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits from the circuits.
Source§impl<C> ToBits for &[C]where
C: ToBits,
impl<C> ToBits for &[C]where
C: ToBits,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits.
Source§impl<C> ToBits for Vec<C>where
C: ToBits,
impl<C> ToBits for Vec<C>where
C: ToBits,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits.
Source§impl<C, const N: usize> ToBits for [C; N]where
C: ToBits,
impl<C, const N: usize> ToBits for [C; N]where
C: ToBits,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of little-endian bits.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
A helper method to return a concatenated list of big-endian bits.
Source§impl<E> ToBits for Address<E>where
E: Environment,
impl<E> ToBits for Address<E>where
E: Environment,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
Outputs the little-endian bit representation of self.to_x_coordinate()
without trailing zeros.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
Outputs the big-endian bit representation of self.to_x_coordinate()
without leading zeros.
Source§impl<E> ToBits for Boolean<E>where
E: Environment,
impl<E> ToBits for Boolean<E>where
E: Environment,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
Outputs self
in a vector.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
Outputs self
in a vector.
Source§impl<E> ToBits for Field<E>where
E: Environment,
impl<E> ToBits for Field<E>where
E: Environment,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
Outputs the little-endian bit representation of self
without trailing zeros.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
Outputs the big-endian bit representation of self
without leading zeros.
Source§impl<E> ToBits for Group<E>where
E: Environment,
impl<E> ToBits for Group<E>where
E: Environment,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
Outputs the little-endian bit representation of self.to_x_coordinate()
without trailing zeros.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
Outputs the big-endian bit representation of self.to_x_coordinate()
without leading zeros.
Source§impl<E> ToBits for Scalar<E>where
E: Environment,
impl<E> ToBits for Scalar<E>where
E: Environment,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
Outputs the little-endian bit representation of self
without trailing zeros.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
Outputs the big-endian bit representation of self
without leading zeros.
Source§impl<E, I> ToBits for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<E, I> ToBits for Integer<E, I>where
E: Environment,
I: IntegerType,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
fn write_bits_le(&self, vec: &mut Vec<bool>)
Outputs the little-endian bit representation of self
without trailing zeros.
Source§fn write_bits_be(&self, vec: &mut Vec<bool>)
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,
impl<N> ToBits for &Literal<N>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for &Identifier<N>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for &ProgramID<N>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for Argument<N>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for Literal<N>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for Plaintext<N>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for Entry<N, Plaintext<N>>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for Entry<N, Ciphertext<N>>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for Owner<N, Plaintext<N>>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for Owner<N, Ciphertext<N>>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for Value<N>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for ComputeKey<N>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for Signature<N>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for Ciphertext<N>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for Future<N>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for Identifier<N>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for Record<N, Plaintext<N>>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for Record<N, Ciphertext<N>>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for ProgramID<N>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for HeaderLeaf<N>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for TransactionLeaf<N>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
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,
impl<N> ToBits for TransitionLeaf<N>where
N: Network,
Source§fn write_bits_le(&self, vec: &mut Vec<bool>)
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>)
fn write_bits_be(&self, vec: &mut Vec<bool>)
Returns the big-endian bits of the Merkle leaf.