Trait snarkvm_wasm::traits::eq::NEqGadget [−][src]
pub trait NEqGadget<F>: Eq where
F: Field, { fn enforce_not_equal<CS>(
&self,
cs: CS,
other: &Self
) -> Result<(), SynthesisError>
where
CS: ConstraintSystem<F>; fn cost() -> usize; }
Required methods
fn enforce_not_equal<CS>(
&self,
cs: CS,
other: &Self
) -> Result<(), SynthesisError> where
CS: ConstraintSystem<F>,
Implementors
impl<P, F> NEqGadget<F> for Fp6Gadget<P, F> where
F: PrimeField,
P: Fp6Parameters,
<P as Fp6Parameters>::Fp2Params: Fp2Parameters,
<<P as Fp6Parameters>::Fp2Params as Fp2Parameters>::Fp == F,
impl<P, F> NEqGadget<F> for Fp12Gadget<P, F> where
F: PrimeField,
P: Fp12Parameters,
<<P as Fp12Parameters>::Fp6Params as Fp6Parameters>::Fp2Params: Fp2Parameters,
<<<P as Fp12Parameters>::Fp6Params as Fp6Parameters>::Fp2Params as Fp2Parameters>::Fp == F,
impl<TargetField, BaseField> NEqGadget<BaseField> for NonNativeFieldVar<TargetField, BaseField> where
BaseField: PrimeField,
TargetField: PrimeField,