Trait snarkvm_wasm::traits::utilities::arithmetic::Add[][src]

pub trait Add<F, Rhs = Self> where
    F: Field
{ type ErrorType; pub fn add<CS>(&self, cs: CS, other: &Self) -> Result<Self, Self::ErrorType>
    where
        CS: ConstraintSystem<F>
; }

Returns addition of self + other in the constraint system.

Associated Types

Loading content...

Required methods

pub fn add<CS>(&self, cs: CS, other: &Self) -> Result<Self, Self::ErrorType> where
    CS: ConstraintSystem<F>, 
[src]

Loading content...

Implementors

impl<F> Add<F, Int8> for Int8 where
    F: PrimeField
[src]

type ErrorType = SignedIntegerError

impl<F> Add<F, Int16> for Int16 where
    F: PrimeField
[src]

type ErrorType = SignedIntegerError

impl<F> Add<F, Int32> for Int32 where
    F: PrimeField
[src]

type ErrorType = SignedIntegerError

impl<F> Add<F, Int64> for Int64 where
    F: PrimeField
[src]

type ErrorType = SignedIntegerError

impl<F> Add<F, Int128> for Int128 where
    F: PrimeField
[src]

type ErrorType = SignedIntegerError

impl<F> Add<F, UInt8> for UInt8 where
    F: Field + PrimeField
[src]

type ErrorType = SynthesisError

impl<F> Add<F, UInt16> for UInt16 where
    F: Field + PrimeField
[src]

type ErrorType = SynthesisError

impl<F> Add<F, UInt32> for UInt32 where
    F: Field + PrimeField
[src]

type ErrorType = SynthesisError

impl<F> Add<F, UInt64> for UInt64 where
    F: Field + PrimeField
[src]

type ErrorType = SynthesisError

impl<F> Add<F, UInt128> for UInt128 where
    F: Field + PrimeField
[src]

type ErrorType = SynthesisError

Loading content...