pub struct GoldilocksExtAsFieldWrapper<E: Engine, CS: ConstraintSystem<E>> { /* private fields */ }
Implementations§
Source§impl<E: Engine, CS: ConstraintSystem<E>> GoldilocksExtAsFieldWrapper<E, CS>
impl<E: Engine, CS: ConstraintSystem<E>> GoldilocksExtAsFieldWrapper<E, CS>
pub fn conditionally_select( cs: &mut CS, bit: Boolean, first: &Self, second: &Self, ) -> Self
pub fn from_coeffs_in_base(coeffs: [GoldilocksField<E>; 2]) -> Self
pub const fn into_coeffs_in_base(self) -> [GoldilocksField<E>; 2]
pub fn from_wrapper_coeffs_in_base( coeffs: [GoldilocksAsFieldWrapper<E, CS>; 2], ) -> Self
pub fn mul_by_base_and_accumulate_into( dst: &mut Self, base: &GoldilocksAsFieldWrapper<E, CS>, other: &Self, cs: &mut CS, ) -> Result<(), SynthesisError>
pub fn mul_assign_by_base( &mut self, cs: &mut CS, base: &GoldilocksAsFieldWrapper<E, CS>, ) -> Result<(), SynthesisError>
Trait Implementations§
Source§impl<E, CS: ConstraintSystem<E>> Clone for GoldilocksExtAsFieldWrapper<E, CS>
impl<E, CS: ConstraintSystem<E>> Clone for GoldilocksExtAsFieldWrapper<E, CS>
Source§impl<E: Engine, CS: ConstraintSystem<E>> Debug for GoldilocksExtAsFieldWrapper<E, CS>
impl<E: Engine, CS: ConstraintSystem<E>> Debug for GoldilocksExtAsFieldWrapper<E, CS>
Source§impl<E: Engine, CS: ConstraintSystem<E>> Display for GoldilocksExtAsFieldWrapper<E, CS>
impl<E: Engine, CS: ConstraintSystem<E>> Display for GoldilocksExtAsFieldWrapper<E, CS>
Source§impl<E: Engine, CS: ConstraintSystem<E>> From<GoldilocksFieldExt<E>> for GoldilocksExtAsFieldWrapper<E, CS>
impl<E: Engine, CS: ConstraintSystem<E>> From<GoldilocksFieldExt<E>> for GoldilocksExtAsFieldWrapper<E, CS>
Source§fn from(value: GoldilocksFieldExt<E>) -> Self
fn from(value: GoldilocksFieldExt<E>) -> Self
Converts to this type from the input type.
Source§impl<E: Engine, CS: ConstraintSystem<E>> Hash for GoldilocksExtAsFieldWrapper<E, CS>
impl<E: Engine, CS: ConstraintSystem<E>> Hash for GoldilocksExtAsFieldWrapper<E, CS>
Source§impl<E: Engine, CS> PrimeFieldLike for GoldilocksExtAsFieldWrapper<E, CS>where
CS: 'static + ConstraintSystem<E>,
impl<E: Engine, CS> PrimeFieldLike for GoldilocksExtAsFieldWrapper<E, CS>where
CS: 'static + ConstraintSystem<E>,
type Base = GoldilocksField
type Context = CS
fn zero(_ctx: &mut Self::Context) -> Self
fn one(_ctx: &mut Self::Context) -> Self
fn minus_one(_ctx: &mut Self::Context) -> Self
fn add_assign(&mut self, other: &Self, ctx: &mut Self::Context) -> &mut Self
fn sub_assign(&mut self, other: &Self, ctx: &mut Self::Context) -> &mut Self
fn mul_assign(&mut self, other: &Self, ctx: &mut Self::Context) -> &mut Self
fn square(&mut self, ctx: &mut Self::Context) -> &mut Self
fn negate(&mut self, ctx: &mut Self::Context) -> &mut Self
fn double(&mut self, ctx: &mut Self::Context) -> &mut Self
fn inverse(&self, ctx: &mut Self::Context) -> Self
fn constant(value: Self::Base, _ctx: &mut Self::Context) -> Self
fn pow_u64(&self, power: u64, ctx: &mut Self::Context) -> Self
fn mul_and_accumulate_into( acc: &mut Self, a: &Self, b: &Self, ctx: &mut Self::Context, )
fn small_pow(&mut self, pow: usize, ctx: &mut Self::Context)
impl<E, CS: ConstraintSystem<E>> Copy for GoldilocksExtAsFieldWrapper<E, CS>
Auto Trait Implementations§
impl<E, CS> Freeze for GoldilocksExtAsFieldWrapper<E, CS>
impl<E, CS> RefUnwindSafe for GoldilocksExtAsFieldWrapper<E, CS>
impl<E, CS> Send for GoldilocksExtAsFieldWrapper<E, CS>
impl<E, CS> Sync for GoldilocksExtAsFieldWrapper<E, CS>
impl<E, CS> Unpin for GoldilocksExtAsFieldWrapper<E, CS>
impl<E, CS> UnwindSafe for GoldilocksExtAsFieldWrapper<E, CS>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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