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

pub trait Neg<F> where
    F: Field
{ type ErrorType; pub fn neg<CS>(&self, cs: CS) -> Result<Self, Self::ErrorType>
    where
        CS: ConstraintSystem<F>
; }

Returns a negated representation of self in the constraint system.

Associated Types

Loading content...

Required methods

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

Loading content...

Implementations on Foreign Types

impl<F> Neg<F> for Vec<Boolean, Global> where
    F: Field
[src]

type ErrorType = SynthesisError

Loading content...

Implementors

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

type ErrorType = SignedIntegerError

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

type ErrorType = SignedIntegerError

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

type ErrorType = SignedIntegerError

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

type ErrorType = SignedIntegerError

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

type ErrorType = SignedIntegerError

Loading content...