Trait snarkvm_wasm::integers::UInt [−][src]
pub trait UInt: Integer { fn negate(&self) -> Self; fn rotr(&self, by: usize) -> Self; fn addmany<F, CS>(cs: CS, operands: &[Self]) -> Result<Self, SynthesisError>
where
CS: ConstraintSystem<F>,
F: PrimeField; fn mul<F, CS>(
&self,
cs: CS,
other: &Self
) -> Result<Self, UnsignedIntegerError>
where
CS: ConstraintSystem<F>,
F: PrimeField; }
Required methods
fn addmany<F, CS>(cs: CS, operands: &[Self]) -> Result<Self, SynthesisError> where
CS: ConstraintSystem<F>,
F: PrimeField, [src]
fn addmany<F, CS>(cs: CS, operands: &[Self]) -> Result<Self, SynthesisError> where
CS: ConstraintSystem<F>,
F: PrimeField, [src]Perform modular addition of several UInt objects.
fn mul<F, CS>(&self, cs: CS, other: &Self) -> Result<Self, UnsignedIntegerError> where
CS: ConstraintSystem<F>,
F: PrimeField, [src]
fn mul<F, CS>(&self, cs: CS, other: &Self) -> Result<Self, UnsignedIntegerError> where
CS: ConstraintSystem<F>,
F: PrimeField, [src]Perform Bitwise multiplication of two UInt objects.
Reference: https://en.wikipedia.org/wiki/Binary_multiplier
Implementors
pub fn addmany<F, CS>(
cs: CS,
operands: &[UInt8]
) -> Result<UInt8, SynthesisError> where
CS: ConstraintSystem<F>,
F: PrimeField, [src]pub fn mul<F, CS>(
&self,
cs: CS,
other: &UInt8
) -> Result<UInt8, UnsignedIntegerError> where
CS: ConstraintSystem<F>,
F: PrimeField, [src]pub fn addmany<F, CS>(
cs: CS,
operands: &[UInt16]
) -> Result<UInt16, SynthesisError> where
CS: ConstraintSystem<F>,
F: PrimeField, [src]pub fn mul<F, CS>(
&self,
cs: CS,
other: &UInt16
) -> Result<UInt16, UnsignedIntegerError> where
CS: ConstraintSystem<F>,
F: PrimeField, [src]pub fn addmany<F, CS>(
cs: CS,
operands: &[UInt32]
) -> Result<UInt32, SynthesisError> where
CS: ConstraintSystem<F>,
F: PrimeField, [src]pub fn mul<F, CS>(
&self,
cs: CS,
other: &UInt32
) -> Result<UInt32, UnsignedIntegerError> where
CS: ConstraintSystem<F>,
F: PrimeField, [src]pub fn addmany<F, CS>(
cs: CS,
operands: &[UInt64]
) -> Result<UInt64, SynthesisError> where
CS: ConstraintSystem<F>,
F: PrimeField, [src]pub fn mul<F, CS>(
&self,
cs: CS,
other: &UInt64
) -> Result<UInt64, UnsignedIntegerError> where
CS: ConstraintSystem<F>,
F: PrimeField, [src]pub fn addmany<F, CS>(
cs: CS,
operands: &[UInt128]
) -> Result<UInt128, SynthesisError> where
CS: ConstraintSystem<F>,
F: PrimeField, [src]
pub fn addmany<F, CS>(
cs: CS,
operands: &[UInt128]
) -> Result<UInt128, SynthesisError> where
CS: ConstraintSystem<F>,
F: PrimeField, [src]Perform modular addition of several UInt128 objects.
pub fn mul<F, CS>(
&self,
cs: CS,
other: &UInt128
) -> Result<UInt128, UnsignedIntegerError> where
CS: ConstraintSystem<F>,
F: PrimeField, [src]
pub fn mul<F, CS>(
&self,
cs: CS,
other: &UInt128
) -> Result<UInt128, UnsignedIntegerError> where
CS: ConstraintSystem<F>,
F: PrimeField, [src]Bitwise multiplication of two UInt128 objects.
Reference: https://en.wikipedia.org/wiki/Binary_multiplier