Trait snarkvm_circuit::ToUpperBits
source · pub trait ToUpperBits {
type Boolean: BooleanTrait;
// Required methods
fn to_upper_bits_le(&self, k: usize) -> Vec<Self::Boolean, Global>;
fn to_upper_bits_be(&self, k: usize) -> Vec<Self::Boolean, Global>;
}
Expand description
Unary operator for converting to k
number of bits.
Required Associated Types§
type Boolean: BooleanTrait
Required Methods§
Trait Implementations§
§impl<E> Metrics<dyn ToUpperBits<Boolean = Boolean<E>>> for Field<E>where
E: Environment,
impl<E> Metrics<dyn ToUpperBits<Boolean = Boolean<E>>> for Field<E>where E: Environment,
§impl<E> OutputMode<dyn ToUpperBits<Boolean = Boolean<E>>> for Field<E>where
E: Environment,
impl<E> OutputMode<dyn ToUpperBits<Boolean = Boolean<E>>> for Field<E>where E: Environment,
type Case = Mode
§fn output_mode(
case: &<Field<E> as OutputMode<dyn ToUpperBits<Boolean = Boolean<E>>>>::Case
) -> Mode
fn output_mode( case: &<Field<E> as OutputMode<dyn ToUpperBits<Boolean = Boolean<E>>>>::Case ) -> Mode
Returns the mode of the output.