pub struct NumExtAsFieldWrapper<F: SmallField, EXT: FieldExtension<2, BaseField = F>, CS: ConstraintSystem<F>> { /* private fields */ }

Implementations§

source§

impl<F: SmallField, EXT: FieldExtension<2, BaseField = F>, CS: ConstraintSystem<F> + 'static> NumExtAsFieldWrapper<F, EXT, CS>

source

pub const fn from_coeffs_in_base(coeffs: [NumAsFieldWrapper<F, CS>; 2]) -> Self

source

pub fn from_num_coeffs_in_base(coeffs: [Num<F>; 2]) -> Self

source

pub const fn into_coeffs_in_base(self) -> [NumAsFieldWrapper<F, CS>; 2]

source

pub const fn into_num_coeffs_in_base(self) -> [Num<F>; 2]

source

pub fn mul_assign_by_base( &mut self, base: &NumAsFieldWrapper<F, CS>, cs: &mut CS, )

source

pub fn conditionally_select( cs: &mut CS, flag: Boolean<F>, a: &Self, b: &Self, ) -> Self

source

pub fn mul_by_base_and_accumulate_into( dst: &mut Self, base: &NumAsFieldWrapper<F, CS>, other: &Self, cs: &mut CS, )

Trait Implementations§

source§

impl<F: SmallField, EXT: FieldExtension<2, BaseField = F>, CSO: ConstraintSystem<F> + 'static> CSAllocatable<F> for NumExtAsFieldWrapper<F, EXT, CSO>

source§

type Witness = ExtensionField<F, 2, EXT>

source§

fn allocate<CS: ConstraintSystem<F>>( cs: &mut CS, witness: Self::Witness, ) -> Self

source§

fn allocate_without_value<CS: ConstraintSystem<F>>(cs: &mut CS) -> Self

source§

fn placeholder_witness() -> Self::Witness

source§

fn allocate_constant<CS: ConstraintSystem<F>>( _cs: &mut CS, _witness: Self::Witness, ) -> Self

source§

impl<F: SmallField, EXT: FieldExtension<2, BaseField = F>, CS: ConstraintSystem<F>> Clone for NumExtAsFieldWrapper<F, EXT, CS>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<F: SmallField, EXT: FieldExtension<2, BaseField = F>, CS: ConstraintSystem<F>> Debug for NumExtAsFieldWrapper<F, EXT, CS>

source§

fn fmt(&self, __f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<F: SmallField, EXT: FieldExtension<2, BaseField = F>, CS: ConstraintSystem<F>> Display for NumExtAsFieldWrapper<F, EXT, CS>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<F: SmallField, EXT: FieldExtension<2, BaseField = F>, CS: ConstraintSystem<F>> Hash for NumExtAsFieldWrapper<F, EXT, CS>

source§

fn hash<__HFEXTCS>(&self, __state: &mut __HFEXTCS)
where __HFEXTCS: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<F: SmallField, EXT: FieldExtension<2, BaseField = F>, CS> PrimeFieldLike for NumExtAsFieldWrapper<F, EXT, CS>
where CS: 'static + ConstraintSystem<F>,

source§

type Base = F

source§

type Context = CS

source§

fn zero(ctx: &mut Self::Context) -> Self

source§

fn one(ctx: &mut Self::Context) -> Self

source§

fn minus_one(ctx: &mut Self::Context) -> Self

source§

fn add_assign(&mut self, other: &Self, ctx: &mut Self::Context) -> &mut Self

source§

fn sub_assign(&mut self, other: &Self, ctx: &mut Self::Context) -> &mut Self

source§

fn mul_assign(&mut self, other: &Self, ctx: &mut Self::Context) -> &mut Self

source§

fn square(&mut self, ctx: &mut Self::Context) -> &mut Self

source§

fn negate(&mut self, ctx: &mut Self::Context) -> &mut Self

source§

fn double(&mut self, ctx: &mut Self::Context) -> &mut Self

source§

fn inverse(&self, ctx: &mut Self::Context) -> Self

source§

fn constant(value: Self::Base, ctx: &mut Self::Context) -> Self

source§

fn mul_and_accumulate_into( acc: &mut Self, a: &Self, b: &Self, ctx: &mut Self::Context, )

source§

fn pow_u64(&self, power: u64, ctx: &mut Self::Context) -> Self

source§

fn small_pow(&mut self, pow: usize, ctx: &mut Self::Context)

source§

impl<F: SmallField, EXT: FieldExtension<2, BaseField = F>, CSO: ConstraintSystem<F> + 'static> WitnessHookable<F> for NumExtAsFieldWrapper<F, EXT, CSO>

source§

fn witness_hook<CS: ConstraintSystem<F>>( &self, cs: &CS, ) -> Box<dyn FnOnce() -> Option<Self::Witness> + 'static>

source§

impl<F: SmallField, EXT: FieldExtension<2, BaseField = F>, CS: ConstraintSystem<F>> Copy for NumExtAsFieldWrapper<F, EXT, CS>

Auto Trait Implementations§

§

impl<F, EXT, CS> Freeze for NumExtAsFieldWrapper<F, EXT, CS>

§

impl<F, EXT, CS> RefUnwindSafe for NumExtAsFieldWrapper<F, EXT, CS>

§

impl<F, EXT, CS> Send for NumExtAsFieldWrapper<F, EXT, CS>

§

impl<F, EXT, CS> Sync for NumExtAsFieldWrapper<F, EXT, CS>

§

impl<F, EXT, CS> Unpin for NumExtAsFieldWrapper<F, EXT, CS>
where EXT: Unpin, F: Unpin,

§

impl<F, EXT, CS> UnwindSafe for NumExtAsFieldWrapper<F, EXT, CS>
where EXT: UnwindSafe, F: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> PipeOp<T> for T

source§

fn to<F, U>(self, f: F) -> U
where F: FnOnce(T) -> U,

source§

fn op<F>(self, f: F) -> T
where F: FnOnce(&mut T),

source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
source§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

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

source§

fn vzip(self) -> V