[−][src]Trait snarkos_models::gadgets::utilities::arithmetic::add::Add
Returns addition of self
+ other
in the constraint system.
Associated Types
type ErrorType
Required methods
#[must_use]fn add<CS: ConstraintSystem<F>>(
&self,
cs: CS,
other: &Self
) -> Result<Self, Self::ErrorType>
&self,
cs: CS,
other: &Self
) -> Result<Self, Self::ErrorType>
Implementors
impl<F: Field + PrimeField> Add<F, UInt128> for UInt128
[src]
type ErrorType = SynthesisError
fn add<CS: ConstraintSystem<F>>(
&self,
cs: CS,
other: &Self
) -> Result<Self, Self::ErrorType>
[src]
&self,
cs: CS,
other: &Self
) -> Result<Self, Self::ErrorType>
impl<F: Field + PrimeField> Add<F, UInt8> for UInt8
[src]
type ErrorType = SynthesisError
fn add<CS: ConstraintSystem<F>>(
&self,
cs: CS,
other: &Self
) -> Result<Self, Self::ErrorType>
[src]
&self,
cs: CS,
other: &Self
) -> Result<Self, Self::ErrorType>
impl<F: Field + PrimeField> Add<F, UInt16> for UInt16
[src]
type ErrorType = SynthesisError
fn add<CS: ConstraintSystem<F>>(
&self,
cs: CS,
other: &Self
) -> Result<Self, Self::ErrorType>
[src]
&self,
cs: CS,
other: &Self
) -> Result<Self, Self::ErrorType>
impl<F: Field + PrimeField> Add<F, UInt32> for UInt32
[src]
type ErrorType = SynthesisError
fn add<CS: ConstraintSystem<F>>(
&self,
cs: CS,
other: &Self
) -> Result<Self, Self::ErrorType>
[src]
&self,
cs: CS,
other: &Self
) -> Result<Self, Self::ErrorType>
impl<F: Field + PrimeField> Add<F, UInt64> for UInt64
[src]
type ErrorType = SynthesisError
fn add<CS: ConstraintSystem<F>>(
&self,
cs: CS,
other: &Self
) -> Result<Self, Self::ErrorType>
[src]
&self,
cs: CS,
other: &Self
) -> Result<Self, Self::ErrorType>
impl<F: PrimeField> Add<F, Int64> for Int64
[src]
type ErrorType = SignedIntegerError
fn add<CS: ConstraintSystem<F>>(
&self,
cs: CS,
other: &Self
) -> Result<Self, Self::ErrorType>
[src]
&self,
cs: CS,
other: &Self
) -> Result<Self, Self::ErrorType>