Struct ark_nonnative_field::AllocatedNonNativeFieldMulResultVar [−][src]
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]
&self
) -> R1CSResult<AllocatedNonNativeFieldVar<TargetField, BaseField>>
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]
fn from(src: &AllocatedNonNativeFieldVar<TargetField, BaseField>) -> Self
[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,
BaseField: Unpin,
TargetField: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,