pub trait ToUpperBits {
    type Boolean: BooleanTrait;

    fn to_upper_bits_le(&self, k: usize) -> Vec<Self::Boolean, Global>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
; fn to_upper_bits_be(&self, k: usize) -> Vec<Self::Boolean, Global>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
; }
Expand description

Unary operator for converting to k number of bits.

Required Associated Types

Required Methods

Outputs the upper k bits of an n-bit element in little-endian representation. Enforces that the lower n - k bits are zero.

Outputs the upper k bits of an n-bit element in big-endian representation. Enforces that the lower n - k bits are zero.

Trait Implementations

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

Returns the mode of the output.

Implementors