ToBitsRaw

Trait ToBitsRaw 

Source
pub trait ToBitsRaw: ToBits {
    // Required methods
    fn write_bits_raw_le(&self, vec: &mut Vec<Self::Boolean>);
    fn write_bits_raw_be(&self, vec: &mut Vec<Self::Boolean>);

    // Provided methods
    fn to_bits_raw_le(&self) -> Vec<Self::Boolean> { ... }
    fn to_bits_raw_be(&self) -> Vec<Self::Boolean> { ... }
}
Expand description

Unary operator for converting to raw bits.

Required Methods§

Source

fn write_bits_raw_le(&self, vec: &mut Vec<Self::Boolean>)

Source

fn write_bits_raw_be(&self, vec: &mut Vec<Self::Boolean>)

Provided Methods§

Source

fn to_bits_raw_le(&self) -> Vec<Self::Boolean>

Returns the little-endian bits without variant or identifier bits of the circuit.

Source

fn to_bits_raw_be(&self) -> Vec<Self::Boolean>

Returns the bits-endian bits without variant or identifier bits of the circuit.

Implementations on Foreign Types§

Source§

impl<'a, B, C0, C1> ToBitsRaw for &'a (C0, C1)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le(&self, vec: &mut Vec<<&'a (C0, C1) as ToBits>::Boolean>)

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

Source§

fn write_bits_raw_be(&self, vec: &mut Vec<<&'a (C0, C1) as ToBits>::Boolean>)

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<'a, B, C0, C1, C2> ToBitsRaw for &'a (C0, C1, C2)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le( &self, vec: &mut Vec<<&'a (C0, C1, C2) as ToBits>::Boolean>, )

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

Source§

fn write_bits_raw_be( &self, vec: &mut Vec<<&'a (C0, C1, C2) as ToBits>::Boolean>, )

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<'a, B, C0, C1, C2, C3> ToBitsRaw for &'a (C0, C1, C2, C3)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>, C3: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le( &self, vec: &mut Vec<<&'a (C0, C1, C2, C3) as ToBits>::Boolean>, )

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

Source§

fn write_bits_raw_be( &self, vec: &mut Vec<<&'a (C0, C1, C2, C3) as ToBits>::Boolean>, )

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<'a, B, C0, C1, C2, C3, C4> ToBitsRaw for &'a (C0, C1, C2, C3, C4)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>, C3: ToBitsRaw<Boolean = B>, C4: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le( &self, vec: &mut Vec<<&'a (C0, C1, C2, C3, C4) as ToBits>::Boolean>, )

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

Source§

fn write_bits_raw_be( &self, vec: &mut Vec<<&'a (C0, C1, C2, C3, C4) as ToBits>::Boolean>, )

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<'a, B, C0, C1, C2, C3, C4, C5> ToBitsRaw for &'a (C0, C1, C2, C3, C4, C5)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>, C3: ToBitsRaw<Boolean = B>, C4: ToBitsRaw<Boolean = B>, C5: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le( &self, vec: &mut Vec<<&'a (C0, C1, C2, C3, C4, C5) as ToBits>::Boolean>, )

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

Source§

fn write_bits_raw_be( &self, vec: &mut Vec<<&'a (C0, C1, C2, C3, C4, C5) as ToBits>::Boolean>, )

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<'a, B, C0, C1, C2, C3, C4, C5, C6> ToBitsRaw for &'a (C0, C1, C2, C3, C4, C5, C6)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>, C3: ToBitsRaw<Boolean = B>, C4: ToBitsRaw<Boolean = B>, C5: ToBitsRaw<Boolean = B>, C6: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le( &self, vec: &mut Vec<<&'a (C0, C1, C2, C3, C4, C5, C6) as ToBits>::Boolean>, )

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

Source§

fn write_bits_raw_be( &self, vec: &mut Vec<<&'a (C0, C1, C2, C3, C4, C5, C6) as ToBits>::Boolean>, )

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<'a, B, C0, C1, C2, C3, C4, C5, C6, C7> ToBitsRaw for &'a (C0, C1, C2, C3, C4, C5, C6, C7)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>, C3: ToBitsRaw<Boolean = B>, C4: ToBitsRaw<Boolean = B>, C5: ToBitsRaw<Boolean = B>, C6: ToBitsRaw<Boolean = B>, C7: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le( &self, vec: &mut Vec<<&'a (C0, C1, C2, C3, C4, C5, C6, C7) as ToBits>::Boolean>, )

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

Source§

fn write_bits_raw_be( &self, vec: &mut Vec<<&'a (C0, C1, C2, C3, C4, C5, C6, C7) as ToBits>::Boolean>, )

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<'a, B, C0, C1, C2, C3, C4, C5, C6, C7, C8> ToBitsRaw for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>, C3: ToBitsRaw<Boolean = B>, C4: ToBitsRaw<Boolean = B>, C5: ToBitsRaw<Boolean = B>, C6: ToBitsRaw<Boolean = B>, C7: ToBitsRaw<Boolean = B>, C8: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le( &self, vec: &mut Vec<<&'a (C0, C1, C2, C3, C4, C5, C6, C7, C8) as ToBits>::Boolean>, )

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

Source§

fn write_bits_raw_be( &self, vec: &mut Vec<<&'a (C0, C1, C2, C3, C4, C5, C6, C7, C8) as ToBits>::Boolean>, )

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<'a, B, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9> ToBitsRaw for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>, C3: ToBitsRaw<Boolean = B>, C4: ToBitsRaw<Boolean = B>, C5: ToBitsRaw<Boolean = B>, C6: ToBitsRaw<Boolean = B>, C7: ToBitsRaw<Boolean = B>, C8: ToBitsRaw<Boolean = B>, C9: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le( &self, vec: &mut Vec<<&'a (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) as ToBits>::Boolean>, )

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

Source§

fn write_bits_raw_be( &self, vec: &mut Vec<<&'a (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) as ToBits>::Boolean>, )

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<'a, B, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10> ToBitsRaw for &'a (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>, C3: ToBitsRaw<Boolean = B>, C4: ToBitsRaw<Boolean = B>, C5: ToBitsRaw<Boolean = B>, C6: ToBitsRaw<Boolean = B>, C7: ToBitsRaw<Boolean = B>, C8: ToBitsRaw<Boolean = B>, C9: ToBitsRaw<Boolean = B>, C10: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le( &self, vec: &mut Vec<<&'a (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) as ToBits>::Boolean>, )

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

Source§

fn write_bits_raw_be( &self, vec: &mut Vec<<&'a (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) as ToBits>::Boolean>, )

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<B, C0, C1> ToBitsRaw for (C0, C1)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le(&self, vec: &mut Vec<<(C0, C1) as ToBits>::Boolean>)

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

Source§

fn write_bits_raw_be(&self, vec: &mut Vec<<(C0, C1) as ToBits>::Boolean>)

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<B, C0, C1, C2> ToBitsRaw for (C0, C1, C2)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le(&self, vec: &mut Vec<<(C0, C1, C2) as ToBits>::Boolean>)

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

Source§

fn write_bits_raw_be(&self, vec: &mut Vec<<(C0, C1, C2) as ToBits>::Boolean>)

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<B, C0, C1, C2, C3> ToBitsRaw for (C0, C1, C2, C3)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>, C3: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le( &self, vec: &mut Vec<<(C0, C1, C2, C3) as ToBits>::Boolean>, )

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

Source§

fn write_bits_raw_be( &self, vec: &mut Vec<<(C0, C1, C2, C3) as ToBits>::Boolean>, )

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<B, C0, C1, C2, C3, C4> ToBitsRaw for (C0, C1, C2, C3, C4)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>, C3: ToBitsRaw<Boolean = B>, C4: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le( &self, vec: &mut Vec<<(C0, C1, C2, C3, C4) as ToBits>::Boolean>, )

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

Source§

fn write_bits_raw_be( &self, vec: &mut Vec<<(C0, C1, C2, C3, C4) as ToBits>::Boolean>, )

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<B, C0, C1, C2, C3, C4, C5> ToBitsRaw for (C0, C1, C2, C3, C4, C5)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>, C3: ToBitsRaw<Boolean = B>, C4: ToBitsRaw<Boolean = B>, C5: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le( &self, vec: &mut Vec<<(C0, C1, C2, C3, C4, C5) as ToBits>::Boolean>, )

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

Source§

fn write_bits_raw_be( &self, vec: &mut Vec<<(C0, C1, C2, C3, C4, C5) as ToBits>::Boolean>, )

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<B, C0, C1, C2, C3, C4, C5, C6> ToBitsRaw for (C0, C1, C2, C3, C4, C5, C6)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>, C3: ToBitsRaw<Boolean = B>, C4: ToBitsRaw<Boolean = B>, C5: ToBitsRaw<Boolean = B>, C6: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le( &self, vec: &mut Vec<<(C0, C1, C2, C3, C4, C5, C6) as ToBits>::Boolean>, )

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

Source§

fn write_bits_raw_be( &self, vec: &mut Vec<<(C0, C1, C2, C3, C4, C5, C6) as ToBits>::Boolean>, )

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<B, C0, C1, C2, C3, C4, C5, C6, C7> ToBitsRaw for (C0, C1, C2, C3, C4, C5, C6, C7)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>, C3: ToBitsRaw<Boolean = B>, C4: ToBitsRaw<Boolean = B>, C5: ToBitsRaw<Boolean = B>, C6: ToBitsRaw<Boolean = B>, C7: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le( &self, vec: &mut Vec<<(C0, C1, C2, C3, C4, C5, C6, C7) as ToBits>::Boolean>, )

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

Source§

fn write_bits_raw_be( &self, vec: &mut Vec<<(C0, C1, C2, C3, C4, C5, C6, C7) as ToBits>::Boolean>, )

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<B, C0, C1, C2, C3, C4, C5, C6, C7, C8> ToBitsRaw for (C0, C1, C2, C3, C4, C5, C6, C7, C8)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>, C3: ToBitsRaw<Boolean = B>, C4: ToBitsRaw<Boolean = B>, C5: ToBitsRaw<Boolean = B>, C6: ToBitsRaw<Boolean = B>, C7: ToBitsRaw<Boolean = B>, C8: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le( &self, vec: &mut Vec<<(C0, C1, C2, C3, C4, C5, C6, C7, C8) as ToBits>::Boolean>, )

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

Source§

fn write_bits_raw_be( &self, vec: &mut Vec<<(C0, C1, C2, C3, C4, C5, C6, C7, C8) as ToBits>::Boolean>, )

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<B, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9> ToBitsRaw for (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>, C3: ToBitsRaw<Boolean = B>, C4: ToBitsRaw<Boolean = B>, C5: ToBitsRaw<Boolean = B>, C6: ToBitsRaw<Boolean = B>, C7: ToBitsRaw<Boolean = B>, C8: ToBitsRaw<Boolean = B>, C9: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le( &self, vec: &mut Vec<<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) as ToBits>::Boolean>, )

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

Source§

fn write_bits_raw_be( &self, vec: &mut Vec<<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) as ToBits>::Boolean>, )

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<B, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10> ToBitsRaw for (C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10)
where B: BooleanTrait, C0: ToBitsRaw<Boolean = B>, C1: ToBitsRaw<Boolean = B>, C2: ToBitsRaw<Boolean = B>, C3: ToBitsRaw<Boolean = B>, C4: ToBitsRaw<Boolean = B>, C5: ToBitsRaw<Boolean = B>, C6: ToBitsRaw<Boolean = B>, C7: ToBitsRaw<Boolean = B>, C8: ToBitsRaw<Boolean = B>, C9: ToBitsRaw<Boolean = B>, C10: ToBitsRaw<Boolean = B>,

Source§

fn write_bits_raw_le( &self, vec: &mut Vec<<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) as ToBits>::Boolean>, )

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

Source§

fn write_bits_raw_be( &self, vec: &mut Vec<<(C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10) as ToBits>::Boolean>, )

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<C, B> ToBitsRaw for &[C]
where C: ToBitsRaw<Boolean = B>, B: BooleanTrait,

Source§

fn write_bits_raw_le(&self, vec: &mut Vec<<&[C] as ToBits>::Boolean>)

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

Source§

fn write_bits_raw_be(&self, vec: &mut Vec<<&[C] as ToBits>::Boolean>)

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<C, B> ToBitsRaw for Vec<C>
where C: ToBitsRaw<Boolean = B>, B: BooleanTrait,

Source§

fn write_bits_raw_le(&self, vec: &mut Vec<<Vec<C> as ToBits>::Boolean>)

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

Source§

fn write_bits_raw_be(&self, vec: &mut Vec<<Vec<C> as ToBits>::Boolean>)

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Source§

impl<C, B, const N: usize> ToBitsRaw for [C; N]
where C: ToBitsRaw<Boolean = B>, B: BooleanTrait,

Source§

fn write_bits_raw_le(&self, vec: &mut Vec<<[C; N] as ToBits>::Boolean>)

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

Source§

fn write_bits_raw_be(&self, vec: &mut Vec<<[C; N] as ToBits>::Boolean>)

A helper method to return a concatenated list of bits-endian bits without variant or identifier bits from the circuits.

Implementors§

Source§

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

Source§

impl<A> ToBitsRaw for Value<A>
where A: Aleo,