Struct ark_nonnative_field::AllocatedNonNativeFieldMulResultVar[][src]

#[must_use]pub struct AllocatedNonNativeFieldMulResultVar<TargetField: PrimeField, BaseField: PrimeField> {
    pub cs: ConstraintSystemRef<BaseField>,
    pub limbs: Vec<FpVar<BaseField>>,
    pub prod_of_num_of_additions: BaseField,
    // some fields omitted
}

The allocated form of NonNativeFieldMulResultVar (introduced below)

Fields

cs: ConstraintSystemRef<BaseField>

Constraint system reference

limbs: Vec<FpVar<BaseField>>

Limbs of the intermediate representations

prod_of_num_of_additions: BaseField

The cumulative num of additions

Implementations

impl<TargetField: PrimeField, BaseField: PrimeField> AllocatedNonNativeFieldMulResultVar<TargetField, BaseField>[src]

pub fn cs(&self) -> ConstraintSystemRef<BaseField>[src]

Get the CS

pub fn value(&self) -> R1CSResult<TargetField>[src]

Get the value of the multiplication result

pub fn reduce(
    &self
) -> R1CSResult<AllocatedNonNativeFieldVar<TargetField, BaseField>>
[src]

Constraints for reducing the result of a multiplication mod p, to get an original representation.

pub fn add(&self, other: &Self) -> R1CSResult<Self>[src]

Add unreduced elements.

pub fn add_constant(&self, other: &TargetField) -> R1CSResult<Self>[src]

Add native constant elem

Trait Implementations

impl<TargetField: Debug + PrimeField, BaseField: Debug + PrimeField> Debug for AllocatedNonNativeFieldMulResultVar<TargetField, BaseField>[src]

impl<TargetField: PrimeField, BaseField: PrimeField> From<&'_ AllocatedNonNativeFieldVar<TargetField, BaseField>> for AllocatedNonNativeFieldMulResultVar<TargetField, BaseField>[src]

Auto Trait Implementations

impl<TargetField, BaseField> !Send for AllocatedNonNativeFieldMulResultVar<TargetField, BaseField>

impl<TargetField, BaseField> !Sync for AllocatedNonNativeFieldMulResultVar<TargetField, BaseField>

impl<TargetField, BaseField> Unpin for AllocatedNonNativeFieldMulResultVar<TargetField, BaseField> where
    BaseField: Unpin,
    TargetField: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,