pub struct QuadExtField<P>where
P: QuadExtConfig,{
pub c0: <P as QuadExtConfig>::BaseField,
pub c1: <P as QuadExtConfig>::BaseField,
}
Expand description
An element of a quadratic extension field F_p[X]/(X^2 - P::NONRESIDUE) is
represented as c0 + c1 * X, for c0, c1 in P::BaseField
.
Fields§
§c0: <P as QuadExtConfig>::BaseField
Coefficient c0
in the representation of the field element c = c0 + c1 * X
c1: <P as QuadExtConfig>::BaseField
Coefficient c1
in the representation of the field element c = c0 + c1 * X
Implementations§
Source§impl<P> QuadExtField<Fp2ConfigWrapper<P>>where
P: Fp2Config,
impl<P> QuadExtField<Fp2ConfigWrapper<P>>where
P: Fp2Config,
Sourcepub fn mul_assign_by_fp(&mut self, other: &<P as Fp2Config>::Fp)
pub fn mul_assign_by_fp(&mut self, other: &<P as Fp2Config>::Fp)
In-place multiply both coefficients c0
and c1
of self
by an element from Fp
.
§Examples
let c0: Fp = Fp::rand(&mut test_rng());
let c1: Fp = Fp::rand(&mut test_rng());
let mut ext_element: Fp2 = Fp2::new(c0, c1);
let base_field_element: Fp = Fp::rand(&mut test_rng());
ext_element.mul_assign_by_fp(&base_field_element);
assert_eq!(ext_element.c0, c0 * base_field_element);
assert_eq!(ext_element.c1, c1 * base_field_element);
Source§impl<P> QuadExtField<Fp4ConfigWrapper<P>>where
P: Fp4Config,
impl<P> QuadExtField<Fp4ConfigWrapper<P>>where
P: Fp4Config,
pub fn mul_by_fp( &mut self, element: &<<P as Fp4Config>::Fp2Config as Fp2Config>::Fp, )
pub fn mul_by_fp2( &mut self, element: &QuadExtField<Fp2ConfigWrapper<<P as Fp4Config>::Fp2Config>>, )
Source§impl<P> QuadExtField<Fp6ConfigWrapper<P>>where
P: Fp6Config,
impl<P> QuadExtField<Fp6ConfigWrapper<P>>where
P: Fp6Config,
pub fn mul_by_034( &mut self, c0: &<<P as Fp6Config>::Fp3Config as Fp3Config>::Fp, c3: &<<P as Fp6Config>::Fp3Config as Fp3Config>::Fp, c4: &<<P as Fp6Config>::Fp3Config as Fp3Config>::Fp, )
pub fn mul_by_014( &mut self, c0: &<<P as Fp6Config>::Fp3Config as Fp3Config>::Fp, c1: &<<P as Fp6Config>::Fp3Config as Fp3Config>::Fp, c4: &<<P as Fp6Config>::Fp3Config as Fp3Config>::Fp, )
Source§impl<P> QuadExtField<Fp12ConfigWrapper<P>>where
P: Fp12Config,
impl<P> QuadExtField<Fp12ConfigWrapper<P>>where
P: Fp12Config,
pub fn mul_by_fp( &mut self, element: &<QuadExtField<Fp12ConfigWrapper<P>> as Field>::BasePrimeField, )
pub fn mul_by_034( &mut self, c0: &QuadExtField<Fp2ConfigWrapper<<<P as Fp12Config>::Fp6Config as Fp6Config>::Fp2Config>>, c3: &QuadExtField<Fp2ConfigWrapper<<<P as Fp12Config>::Fp6Config as Fp6Config>::Fp2Config>>, c4: &QuadExtField<Fp2ConfigWrapper<<<P as Fp12Config>::Fp6Config as Fp6Config>::Fp2Config>>, )
pub fn mul_by_014( &mut self, c0: &QuadExtField<Fp2ConfigWrapper<<<P as Fp12Config>::Fp6Config as Fp6Config>::Fp2Config>>, c1: &QuadExtField<Fp2ConfigWrapper<<<P as Fp12Config>::Fp6Config as Fp6Config>::Fp2Config>>, c4: &QuadExtField<Fp2ConfigWrapper<<<P as Fp12Config>::Fp6Config as Fp6Config>::Fp2Config>>, )
Source§impl<P> QuadExtField<P>where
P: QuadExtConfig,
impl<P> QuadExtField<P>where
P: QuadExtConfig,
Sourcepub const fn new(
c0: <P as QuadExtConfig>::BaseField,
c1: <P as QuadExtConfig>::BaseField,
) -> QuadExtField<P>
pub const fn new( c0: <P as QuadExtConfig>::BaseField, c1: <P as QuadExtConfig>::BaseField, ) -> QuadExtField<P>
Create a new field element from coefficients c0
and c1
,
so that the result is of the form c0 + c1 * X
.
§Examples
let c0: Fp = Fp::rand(&mut test_rng());
let c1: Fp = Fp::rand(&mut test_rng());
// `Fp2` a degree-2 extension over `Fp`.
let c: Fp2 = Fp2::new(c0, c1);
Sourcepub fn conjugate_in_place(&mut self) -> &mut QuadExtField<P>
pub fn conjugate_in_place(&mut self) -> &mut QuadExtField<P>
This is only to be used when the element is known to be in the cyclotomic subgroup.
Sourcepub fn norm(&self) -> <P as QuadExtConfig>::BaseField
pub fn norm(&self) -> <P as QuadExtConfig>::BaseField
Norm of QuadExtField over P::BaseField
:Norm(a) = a * a.conjugate()
.
This simplifies to: Norm(a) = a.x^2 - P::NON_RESIDUE * a.y^2
.
This is alternatively expressed as Norm(a) = a^(1 + p)
.
§Examples
let c: Fp2 = Fp2::rand(&mut test_rng());
let norm = c.norm();
// We now compute the norm using the `a * a.conjugate()` approach.
// A Frobenius map sends an element of `Fp2` to one of its p_th powers:
// `a.frobenius_map_in_place(1) -> a^p` and `a^p` is also `a`'s Galois conjugate.
let mut c_conjugate = c;
c_conjugate.frobenius_map_in_place(1);
let norm2 = c * c_conjugate;
// Computing the norm of an `Fp2` element should result in an element
// in BaseField `Fp`, i.e. `c1 == 0`
assert!(norm2.c1.is_zero());
assert_eq!(norm, norm2.c0);
Sourcepub fn mul_assign_by_basefield(
&mut self,
element: &<P as QuadExtConfig>::BaseField,
)
pub fn mul_assign_by_basefield( &mut self, element: &<P as QuadExtConfig>::BaseField, )
In-place multiply both coefficients c0
& c1
of the quadratic
extension field by an element from the base field.
Trait Implementations§
Source§impl<'a, 'b, P> Add<&'a QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
impl<'a, 'b, P> Add<&'a QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
+
operator.Source§fn add(self, other: &'a QuadExtField<P>) -> QuadExtField<P>
fn add(self, other: &'a QuadExtField<P>) -> QuadExtField<P>
+
operation. Read moreSource§impl<'a, P> Add<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> Add<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
+
operator.Source§fn add(self, other: &QuadExtField<P>) -> QuadExtField<P>
fn add(self, other: &QuadExtField<P>) -> QuadExtField<P>
+
operation. Read moreSource§impl<'a, 'b, P> Add<&'a mut QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
impl<'a, 'b, P> Add<&'a mut QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
+
operator.Source§fn add(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
fn add(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
+
operation. Read moreSource§impl<'a, P> Add<&'a mut QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> Add<&'a mut QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
+
operator.Source§fn add(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
fn add(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
+
operation. Read moreSource§impl<'b, P> Add<QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
impl<'b, P> Add<QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
+
operator.Source§fn add(self, other: QuadExtField<P>) -> QuadExtField<P>
fn add(self, other: QuadExtField<P>) -> QuadExtField<P>
+
operation. Read moreSource§impl<P> Add for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Add for QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
+
operator.Source§fn add(self, other: QuadExtField<P>) -> QuadExtField<P>
fn add(self, other: QuadExtField<P>) -> QuadExtField<P>
+
operation. Read moreSource§impl<'a, P> AddAssign<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> AddAssign<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn add_assign(&mut self, other: &QuadExtField<P>)
fn add_assign(&mut self, other: &QuadExtField<P>)
+=
operation. Read moreSource§impl<'a, P> AddAssign<&'a mut QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> AddAssign<&'a mut QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn add_assign(&mut self, other: &'a mut QuadExtField<P>)
fn add_assign(&mut self, other: &'a mut QuadExtField<P>)
+=
operation. Read moreSource§impl<P> AddAssign for QuadExtField<P>where
P: QuadExtConfig,
impl<P> AddAssign for QuadExtField<P>where
P: QuadExtConfig,
Source§fn add_assign(&mut self, other: QuadExtField<P>)
fn add_assign(&mut self, other: QuadExtField<P>)
+=
operation. Read moreSource§impl<P> AdditiveGroup for QuadExtField<P>where
P: QuadExtConfig,
impl<P> AdditiveGroup for QuadExtField<P>where
P: QuadExtConfig,
Source§const ZERO: QuadExtField<P> = _
const ZERO: QuadExtField<P> = _
type Scalar = QuadExtField<P>
Source§fn double(&self) -> QuadExtField<P>
fn double(&self) -> QuadExtField<P>
self
.Source§fn double_in_place(&mut self) -> &mut QuadExtField<P>
fn double_in_place(&mut self) -> &mut QuadExtField<P>
self
in place.Source§fn neg_in_place(&mut self) -> &mut QuadExtField<P>
fn neg_in_place(&mut self) -> &mut QuadExtField<P>
self
in place.Source§impl<P> CanonicalDeserialize for QuadExtField<P>where
P: QuadExtConfig,
impl<P> CanonicalDeserialize for QuadExtField<P>where
P: QuadExtConfig,
Source§fn deserialize_with_mode<R>(
reader: R,
compress: Compress,
validate: Validate,
) -> Result<QuadExtField<P>, SerializationError>where
R: Read,
fn deserialize_with_mode<R>(
reader: R,
compress: Compress,
validate: Validate,
) -> Result<QuadExtField<P>, SerializationError>where
R: Read,
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_compressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
Source§impl<P> CanonicalDeserializeWithFlags for QuadExtField<P>where
P: QuadExtConfig,
impl<P> CanonicalDeserializeWithFlags for QuadExtField<P>where
P: QuadExtConfig,
Source§fn deserialize_with_flags<R, F>(
reader: R,
) -> Result<(QuadExtField<P>, F), SerializationError>
fn deserialize_with_flags<R, F>( reader: R, ) -> Result<(QuadExtField<P>, F), SerializationError>
Self
and Flags
from reader
.
Returns empty flags by default.Source§impl<P> CanonicalSerialize for QuadExtField<P>where
P: QuadExtConfig,
impl<P> CanonicalSerialize for QuadExtField<P>where
P: QuadExtConfig,
Source§fn serialize_with_mode<W>(
&self,
writer: W,
_compress: Compress,
) -> Result<(), SerializationError>where
W: Write,
fn serialize_with_mode<W>(
&self,
writer: W,
_compress: Compress,
) -> Result<(), SerializationError>where
W: Write,
fn serialized_size(&self, _compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn uncompressed_size(&self) -> usize
Source§impl<P> CanonicalSerializeWithFlags for QuadExtField<P>where
P: QuadExtConfig,
impl<P> CanonicalSerializeWithFlags for QuadExtField<P>where
P: QuadExtConfig,
Source§fn serialize_with_flags<W, F>(
&self,
writer: W,
flags: F,
) -> Result<(), SerializationError>
fn serialize_with_flags<W, F>( &self, writer: W, flags: F, ) -> Result<(), SerializationError>
self
and flags
into writer
.Source§fn serialized_size_with_flags<F>(&self) -> usizewhere
F: Flags,
fn serialized_size_with_flags<F>(&self) -> usizewhere
F: Flags,
self
and flags
into writer
.Source§impl<P> Clone for QuadExtField<P>
impl<P> Clone for QuadExtField<P>
Source§fn clone(&self) -> QuadExtField<P>
fn clone(&self) -> QuadExtField<P>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<P> CyclotomicMultSubgroup for QuadExtField<Fp12ConfigWrapper<P>>where
P: Fp12Config,
impl<P> CyclotomicMultSubgroup for QuadExtField<Fp12ConfigWrapper<P>>where
P: Fp12Config,
Source§const INVERSE_IS_FAST: bool = true
const INVERSE_IS_FAST: bool = true
false
, but should be set to true
for quadratic extensions.Source§fn cyclotomic_inverse_in_place(
&mut self,
) -> Option<&mut QuadExtField<Fp12ConfigWrapper<P>>>
fn cyclotomic_inverse_in_place( &mut self, ) -> Option<&mut QuadExtField<Fp12ConfigWrapper<P>>>
self
. See Self::INVERSE_IS_FAST
for details.
Returns None
if self.is_zero()
, and Some
otherwise. Read moreSource§fn cyclotomic_square_in_place(
&mut self,
) -> &mut QuadExtField<Fp12ConfigWrapper<P>>
fn cyclotomic_square_in_place( &mut self, ) -> &mut QuadExtField<Fp12ConfigWrapper<P>>
self
in place. By default this is computed using
Field::square_in_place
, but for degree 12 extensions,
this can be computed faster than normal squaring. Read moreSource§fn cyclotomic_square(&self) -> Self
fn cyclotomic_square(&self) -> Self
Field::square
, but for
degree 12 extensions, this can be computed faster than normal squaring. Read moreSource§fn cyclotomic_inverse(&self) -> Option<Self>
fn cyclotomic_inverse(&self) -> Option<Self>
self
. See Self::INVERSE_IS_FAST
for details.
Returns None
if self.is_zero()
, and Some
otherwise. Read moreSource§fn cyclotomic_exp(&self, e: impl AsRef<[u64]>) -> Self
fn cyclotomic_exp(&self, e: impl AsRef<[u64]>) -> Self
Source§impl<P> CyclotomicMultSubgroup for QuadExtField<Fp2ConfigWrapper<P>>where
P: Fp2Config,
impl<P> CyclotomicMultSubgroup for QuadExtField<Fp2ConfigWrapper<P>>where
P: Fp2Config,
Source§const INVERSE_IS_FAST: bool = true
const INVERSE_IS_FAST: bool = true
false
, but should be set to true
for quadratic extensions.Source§fn cyclotomic_inverse_in_place(
&mut self,
) -> Option<&mut QuadExtField<Fp2ConfigWrapper<P>>>
fn cyclotomic_inverse_in_place( &mut self, ) -> Option<&mut QuadExtField<Fp2ConfigWrapper<P>>>
self
. See Self::INVERSE_IS_FAST
for details.
Returns None
if self.is_zero()
, and Some
otherwise. Read moreSource§fn cyclotomic_square(&self) -> Self
fn cyclotomic_square(&self) -> Self
Field::square
, but for
degree 12 extensions, this can be computed faster than normal squaring. Read moreSource§fn cyclotomic_square_in_place(&mut self) -> &mut Self
fn cyclotomic_square_in_place(&mut self) -> &mut Self
self
in place. By default this is computed using
Field::square_in_place
, but for degree 12 extensions,
this can be computed faster than normal squaring. Read moreSource§fn cyclotomic_inverse(&self) -> Option<Self>
fn cyclotomic_inverse(&self) -> Option<Self>
self
. See Self::INVERSE_IS_FAST
for details.
Returns None
if self.is_zero()
, and Some
otherwise. Read moreSource§fn cyclotomic_exp(&self, e: impl AsRef<[u64]>) -> Self
fn cyclotomic_exp(&self, e: impl AsRef<[u64]>) -> Self
Source§impl<P> CyclotomicMultSubgroup for QuadExtField<Fp4ConfigWrapper<P>>where
P: Fp4Config,
impl<P> CyclotomicMultSubgroup for QuadExtField<Fp4ConfigWrapper<P>>where
P: Fp4Config,
Source§const INVERSE_IS_FAST: bool = true
const INVERSE_IS_FAST: bool = true
false
, but should be set to true
for quadratic extensions.Source§fn cyclotomic_inverse_in_place(
&mut self,
) -> Option<&mut QuadExtField<Fp4ConfigWrapper<P>>>
fn cyclotomic_inverse_in_place( &mut self, ) -> Option<&mut QuadExtField<Fp4ConfigWrapper<P>>>
self
. See Self::INVERSE_IS_FAST
for details.
Returns None
if self.is_zero()
, and Some
otherwise. Read moreSource§fn cyclotomic_square(&self) -> Self
fn cyclotomic_square(&self) -> Self
Field::square
, but for
degree 12 extensions, this can be computed faster than normal squaring. Read moreSource§fn cyclotomic_square_in_place(&mut self) -> &mut Self
fn cyclotomic_square_in_place(&mut self) -> &mut Self
self
in place. By default this is computed using
Field::square_in_place
, but for degree 12 extensions,
this can be computed faster than normal squaring. Read moreSource§fn cyclotomic_inverse(&self) -> Option<Self>
fn cyclotomic_inverse(&self) -> Option<Self>
self
. See Self::INVERSE_IS_FAST
for details.
Returns None
if self.is_zero()
, and Some
otherwise. Read moreSource§fn cyclotomic_exp(&self, e: impl AsRef<[u64]>) -> Self
fn cyclotomic_exp(&self, e: impl AsRef<[u64]>) -> Self
Source§impl<P> CyclotomicMultSubgroup for QuadExtField<Fp6ConfigWrapper<P>>where
P: Fp6Config,
impl<P> CyclotomicMultSubgroup for QuadExtField<Fp6ConfigWrapper<P>>where
P: Fp6Config,
Source§const INVERSE_IS_FAST: bool = true
const INVERSE_IS_FAST: bool = true
false
, but should be set to true
for quadratic extensions.Source§fn cyclotomic_inverse_in_place(
&mut self,
) -> Option<&mut QuadExtField<Fp6ConfigWrapper<P>>>
fn cyclotomic_inverse_in_place( &mut self, ) -> Option<&mut QuadExtField<Fp6ConfigWrapper<P>>>
self
. See Self::INVERSE_IS_FAST
for details.
Returns None
if self.is_zero()
, and Some
otherwise. Read moreSource§fn cyclotomic_square(&self) -> Self
fn cyclotomic_square(&self) -> Self
Field::square
, but for
degree 12 extensions, this can be computed faster than normal squaring. Read moreSource§fn cyclotomic_square_in_place(&mut self) -> &mut Self
fn cyclotomic_square_in_place(&mut self) -> &mut Self
self
in place. By default this is computed using
Field::square_in_place
, but for degree 12 extensions,
this can be computed faster than normal squaring. Read moreSource§fn cyclotomic_inverse(&self) -> Option<Self>
fn cyclotomic_inverse(&self) -> Option<Self>
self
. See Self::INVERSE_IS_FAST
for details.
Returns None
if self.is_zero()
, and Some
otherwise. Read moreSource§fn cyclotomic_exp(&self, e: impl AsRef<[u64]>) -> Self
fn cyclotomic_exp(&self, e: impl AsRef<[u64]>) -> Self
Source§impl<P> Debug for QuadExtField<P>
impl<P> Debug for QuadExtField<P>
Source§impl<P> Default for QuadExtField<P>
impl<P> Default for QuadExtField<P>
Source§fn default() -> QuadExtField<P>
fn default() -> QuadExtField<P>
Source§impl<P> Display for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Display for QuadExtField<P>where
P: QuadExtConfig,
Source§impl<'a, 'b, P> Div<&'a QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
impl<'a, 'b, P> Div<&'a QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
/
operator.Source§fn div(self, other: &'a QuadExtField<P>) -> QuadExtField<P>
fn div(self, other: &'a QuadExtField<P>) -> QuadExtField<P>
/
operation. Read moreSource§impl<'a, P> Div<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> Div<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
/
operator.Source§fn div(self, other: &QuadExtField<P>) -> QuadExtField<P>
fn div(self, other: &QuadExtField<P>) -> QuadExtField<P>
/
operation. Read moreSource§impl<'a, 'b, P> Div<&'a mut QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
impl<'a, 'b, P> Div<&'a mut QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
/
operator.Source§fn div(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
fn div(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
/
operation. Read moreSource§impl<'a, P> Div<&'a mut QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> Div<&'a mut QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
/
operator.Source§fn div(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
fn div(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
/
operation. Read moreSource§impl<'b, P> Div<QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
impl<'b, P> Div<QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
/
operator.Source§fn div(self, other: QuadExtField<P>) -> QuadExtField<P>
fn div(self, other: QuadExtField<P>) -> QuadExtField<P>
/
operation. Read moreSource§impl<P> Div for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Div for QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
/
operator.Source§fn div(self, other: QuadExtField<P>) -> QuadExtField<P>
fn div(self, other: QuadExtField<P>) -> QuadExtField<P>
/
operation. Read moreSource§impl<'a, P> DivAssign<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> DivAssign<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn div_assign(&mut self, other: &QuadExtField<P>)
fn div_assign(&mut self, other: &QuadExtField<P>)
/=
operation. Read moreSource§impl<'a, P> DivAssign<&'a mut QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> DivAssign<&'a mut QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn div_assign(&mut self, other: &'a mut QuadExtField<P>)
fn div_assign(&mut self, other: &'a mut QuadExtField<P>)
/=
operation. Read moreSource§impl<P> DivAssign for QuadExtField<P>where
P: QuadExtConfig,
impl<P> DivAssign for QuadExtField<P>where
P: QuadExtConfig,
Source§fn div_assign(&mut self, other: QuadExtField<P>)
fn div_assign(&mut self, other: QuadExtField<P>)
/=
operation. Read moreSource§impl<P> FftField for QuadExtField<P>
impl<P> FftField for QuadExtField<P>
Source§const GENERATOR: QuadExtField<P> = _
const GENERATOR: QuadExtField<P> = _
Source§const TWO_ADICITY: u32 = <P::BaseField>::TWO_ADICITY
const TWO_ADICITY: u32 = <P::BaseField>::TWO_ADICITY
N
be the size of the multiplicative group defined by the field.
Then TWO_ADICITY
is the two-adicity of N
, i.e. the integer s
such that N = 2^s * t
for some odd integer t
.Source§const TWO_ADIC_ROOT_OF_UNITY: QuadExtField<P> = _
const TWO_ADIC_ROOT_OF_UNITY: QuadExtField<P> = _
Source§const SMALL_SUBGROUP_BASE: Option<u32> = <P::BaseField>::SMALL_SUBGROUP_BASE
const SMALL_SUBGROUP_BASE: Option<u32> = <P::BaseField>::SMALL_SUBGROUP_BASE
b
such that there exists a multiplicative subgroup
of size b^k
for some integer k
.Source§const SMALL_SUBGROUP_BASE_ADICITY: Option<u32> = <P::BaseField>::SMALL_SUBGROUP_BASE_ADICITY
const SMALL_SUBGROUP_BASE_ADICITY: Option<u32> = <P::BaseField>::SMALL_SUBGROUP_BASE_ADICITY
k
such that there exists a multiplicative subgroup
of size Self::SMALL_SUBGROUP_BASE^k
.Source§const LARGE_SUBGROUP_ROOT_OF_UNITY: Option<QuadExtField<P>> = _
const LARGE_SUBGROUP_ROOT_OF_UNITY: Option<QuadExtField<P>> = _
Source§fn get_root_of_unity(n: u64) -> Option<Self>
fn get_root_of_unity(n: u64) -> Option<Self>
FftConfig::LARGE_SUBGROUP_ROOT_OF_UNITY
(for n = 2^i * FftConfig::SMALL_SUBGROUP_BASE^j for some i, j).Source§impl<P> Field for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Field for QuadExtField<P>where
P: QuadExtConfig,
Source§const SQRT_PRECOMP: Option<SqrtPrecomputation<QuadExtField<P>>> = None
const SQRT_PRECOMP: Option<SqrtPrecomputation<QuadExtField<P>>> = None
Source§const ONE: QuadExtField<P> = _
const ONE: QuadExtField<P> = _
type BasePrimeField = <P as QuadExtConfig>::BasePrimeField
Source§fn extension_degree() -> u64
fn extension_degree() -> u64
Self::BasePrimeField
.Source§fn from_base_prime_field(
elem: <QuadExtField<P> as Field>::BasePrimeField,
) -> QuadExtField<P>
fn from_base_prime_field( elem: <QuadExtField<P> as Field>::BasePrimeField, ) -> QuadExtField<P>
fn to_base_prime_field_elements( &self, ) -> impl Iterator<Item = <QuadExtField<P> as Field>::BasePrimeField>
Source§fn from_base_prime_field_elems(
elems: impl IntoIterator<Item = <QuadExtField<P> as Field>::BasePrimeField>,
) -> Option<QuadExtField<P>>
fn from_base_prime_field_elems( elems: impl IntoIterator<Item = <QuadExtField<P> as Field>::BasePrimeField>, ) -> Option<QuadExtField<P>>
Source§fn square(&self) -> QuadExtField<P>
fn square(&self) -> QuadExtField<P>
self * self
.Source§fn from_random_bytes_with_flags<F>(bytes: &[u8]) -> Option<(QuadExtField<P>, F)>where
F: Flags,
fn from_random_bytes_with_flags<F>(bytes: &[u8]) -> Option<(QuadExtField<P>, F)>where
F: Flags,
F
specification. Returns None
if the deserialization
fails. Read moreSource§fn from_random_bytes(bytes: &[u8]) -> Option<QuadExtField<P>>
fn from_random_bytes(bytes: &[u8]) -> Option<QuadExtField<P>>
None
if the
deserialization fails. Read moreSource§fn square_in_place(&mut self) -> &mut QuadExtField<P>
fn square_in_place(&mut self) -> &mut QuadExtField<P>
self
in place.Source§fn inverse(&self) -> Option<QuadExtField<P>>
fn inverse(&self) -> Option<QuadExtField<P>>
self
if self
is nonzero.Source§fn inverse_in_place(&mut self) -> Option<&mut QuadExtField<P>>
fn inverse_in_place(&mut self) -> Option<&mut QuadExtField<P>>
self.inverse().is_none()
, this just returns None
. Otherwise, it sets
self
to self.inverse().unwrap()
.Source§fn frobenius_map_in_place(&mut self, power: usize)
fn frobenius_map_in_place(&mut self, power: usize)
self
to self^s
, where s = Self::BasePrimeField::MODULUS^power
.
This is also called the Frobenius automorphism.Source§fn legendre(&self) -> LegendreSymbol
fn legendre(&self) -> LegendreSymbol
LegendreSymbol
, which indicates whether this field element
is 1 : a quadratic residue
0 : equal to 0
-1 : a quadratic non-residueSource§fn sqrt(&self) -> Option<QuadExtField<P>>
fn sqrt(&self) -> Option<QuadExtField<P>>
Source§fn sqrt_in_place(&mut self) -> Option<&mut QuadExtField<P>>
fn sqrt_in_place(&mut self) -> Option<&mut QuadExtField<P>>
self
to be the square root of self
, if it exists.fn mul_by_base_prime_field( &self, elem: &<QuadExtField<P> as Field>::BasePrimeField, ) -> QuadExtField<P>
Source§fn characteristic() -> &'static [u64]
fn characteristic() -> &'static [u64]
Source§fn sum_of_products<const T: usize>(a: &[Self; T], b: &[Self; T]) -> Self
fn sum_of_products<const T: usize>(a: &[Self; T], b: &[Self; T]) -> Self
sum([a_i * b_i])
.Source§fn frobenius_map(&self, power: usize) -> Self
fn frobenius_map(&self, power: usize) -> Self
self^s
, where s = Self::BasePrimeField::MODULUS^power
.
This is also called the Frobenius automorphism.Source§fn pow<S>(&self, exp: S) -> Self
fn pow<S>(&self, exp: S) -> Self
self^exp
, where exp
is an integer represented with u64
limbs,
least significant limb first.Source§fn pow_with_table<S>(powers_of_2: &[Self], exp: S) -> Option<Self>
fn pow_with_table<S>(powers_of_2: &[Self], exp: S) -> Option<Self>
f
by a number represented with u64
limbs, using a precomputed table containing as many powers of 2 of
f
as the 1 + the floor of log2 of the exponent exp
, starting
from the 1st power. That is, powers_of_2
should equal &[p, p^2, p^4, ..., p^(2^n)]
when exp
has at most n
bits. Read moreSource§impl<P> From<bool> for QuadExtField<P>where
P: QuadExtConfig,
impl<P> From<bool> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn from(other: bool) -> QuadExtField<P>
fn from(other: bool) -> QuadExtField<P>
Source§impl<P> From<i128> for QuadExtField<P>where
P: QuadExtConfig,
impl<P> From<i128> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn from(val: i128) -> QuadExtField<P>
fn from(val: i128) -> QuadExtField<P>
Source§impl<P> From<i16> for QuadExtField<P>where
P: QuadExtConfig,
impl<P> From<i16> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn from(val: i16) -> QuadExtField<P>
fn from(val: i16) -> QuadExtField<P>
Source§impl<P> From<i32> for QuadExtField<P>where
P: QuadExtConfig,
impl<P> From<i32> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn from(val: i32) -> QuadExtField<P>
fn from(val: i32) -> QuadExtField<P>
Source§impl<P> From<i64> for QuadExtField<P>where
P: QuadExtConfig,
impl<P> From<i64> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn from(val: i64) -> QuadExtField<P>
fn from(val: i64) -> QuadExtField<P>
Source§impl<P> From<i8> for QuadExtField<P>where
P: QuadExtConfig,
impl<P> From<i8> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn from(val: i8) -> QuadExtField<P>
fn from(val: i8) -> QuadExtField<P>
Source§impl<P> From<u128> for QuadExtField<P>where
P: QuadExtConfig,
impl<P> From<u128> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn from(other: u128) -> QuadExtField<P>
fn from(other: u128) -> QuadExtField<P>
Source§impl<P> From<u16> for QuadExtField<P>where
P: QuadExtConfig,
impl<P> From<u16> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn from(other: u16) -> QuadExtField<P>
fn from(other: u16) -> QuadExtField<P>
Source§impl<P> From<u32> for QuadExtField<P>where
P: QuadExtConfig,
impl<P> From<u32> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn from(other: u32) -> QuadExtField<P>
fn from(other: u32) -> QuadExtField<P>
Source§impl<P> From<u64> for QuadExtField<P>where
P: QuadExtConfig,
impl<P> From<u64> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn from(other: u64) -> QuadExtField<P>
fn from(other: u64) -> QuadExtField<P>
Source§impl<P> From<u8> for QuadExtField<P>where
P: QuadExtConfig,
impl<P> From<u8> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn from(other: u8) -> QuadExtField<P>
fn from(other: u8) -> QuadExtField<P>
Source§impl<P> Hash for QuadExtField<P>
impl<P> Hash for QuadExtField<P>
Source§impl<'a, 'b, P> Mul<&'a QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
impl<'a, 'b, P> Mul<&'a QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
*
operator.Source§fn mul(self, other: &'a QuadExtField<P>) -> QuadExtField<P>
fn mul(self, other: &'a QuadExtField<P>) -> QuadExtField<P>
*
operation. Read moreSource§impl<'a, P> Mul<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> Mul<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
*
operator.Source§fn mul(self, other: &QuadExtField<P>) -> QuadExtField<P>
fn mul(self, other: &QuadExtField<P>) -> QuadExtField<P>
*
operation. Read moreSource§impl<'a, 'b, P> Mul<&'a mut QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
impl<'a, 'b, P> Mul<&'a mut QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
*
operator.Source§fn mul(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
fn mul(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
*
operation. Read moreSource§impl<'a, P> Mul<&'a mut QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> Mul<&'a mut QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
*
operator.Source§fn mul(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
fn mul(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
*
operation. Read moreSource§impl<'b, P> Mul<QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
impl<'b, P> Mul<QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
*
operator.Source§fn mul(self, other: QuadExtField<P>) -> QuadExtField<P>
fn mul(self, other: QuadExtField<P>) -> QuadExtField<P>
*
operation. Read moreSource§impl<P> Mul for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Mul for QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
*
operator.Source§fn mul(self, other: QuadExtField<P>) -> QuadExtField<P>
fn mul(self, other: QuadExtField<P>) -> QuadExtField<P>
*
operation. Read moreSource§impl<'a, P> MulAssign<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> MulAssign<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn mul_assign(&mut self, other: &QuadExtField<P>)
fn mul_assign(&mut self, other: &QuadExtField<P>)
*=
operation. Read moreSource§impl<'a, P> MulAssign<&'a mut QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> MulAssign<&'a mut QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn mul_assign(&mut self, other: &'a mut QuadExtField<P>)
fn mul_assign(&mut self, other: &'a mut QuadExtField<P>)
*=
operation. Read moreSource§impl<P> MulAssign for QuadExtField<P>where
P: QuadExtConfig,
impl<P> MulAssign for QuadExtField<P>where
P: QuadExtConfig,
Source§fn mul_assign(&mut self, other: QuadExtField<P>)
fn mul_assign(&mut self, other: QuadExtField<P>)
*=
operation. Read moreSource§impl<P> Neg for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Neg for QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
-
operator.Source§fn neg(self) -> QuadExtField<P>
fn neg(self) -> QuadExtField<P>
-
operation. Read moreSource§impl<P> One for QuadExtField<P>where
P: QuadExtConfig,
impl<P> One for QuadExtField<P>where
P: QuadExtConfig,
Source§impl<P> Ord for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Ord for QuadExtField<P>where
P: QuadExtConfig,
QuadExtField
elements are ordered lexicographically.
Source§fn cmp(&self, other: &QuadExtField<P>) -> Ordering
fn cmp(&self, other: &QuadExtField<P>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<P> PartialEq for QuadExtField<P>
impl<P> PartialEq for QuadExtField<P>
Source§impl<P> PartialOrd for QuadExtField<P>where
P: QuadExtConfig,
impl<P> PartialOrd for QuadExtField<P>where
P: QuadExtConfig,
Source§impl<'a, P> Product<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> Product<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn product<I>(iter: I) -> QuadExtField<P>where
I: Iterator<Item = &'a QuadExtField<P>>,
fn product<I>(iter: I) -> QuadExtField<P>where
I: Iterator<Item = &'a QuadExtField<P>>,
Self
from the elements by multiplying
the items.Source§impl<P> Product for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Product for QuadExtField<P>where
P: QuadExtConfig,
Source§fn product<I>(iter: I) -> QuadExtField<P>where
I: Iterator<Item = QuadExtField<P>>,
fn product<I>(iter: I) -> QuadExtField<P>where
I: Iterator<Item = QuadExtField<P>>,
Self
from the elements by multiplying
the items.Source§impl<'a, 'b, P> Sub<&'a QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
impl<'a, 'b, P> Sub<&'a QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
-
operator.Source§fn sub(self, other: &'a QuadExtField<P>) -> QuadExtField<P>
fn sub(self, other: &'a QuadExtField<P>) -> QuadExtField<P>
-
operation. Read moreSource§impl<'a, P> Sub<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> Sub<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
-
operator.Source§fn sub(self, other: &QuadExtField<P>) -> QuadExtField<P>
fn sub(self, other: &QuadExtField<P>) -> QuadExtField<P>
-
operation. Read moreSource§impl<'a, 'b, P> Sub<&'a mut QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
impl<'a, 'b, P> Sub<&'a mut QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
-
operator.Source§fn sub(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
fn sub(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
-
operation. Read moreSource§impl<'a, P> Sub<&'a mut QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> Sub<&'a mut QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
-
operator.Source§fn sub(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
fn sub(self, other: &'a mut QuadExtField<P>) -> QuadExtField<P>
-
operation. Read moreSource§impl<'b, P> Sub<QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
impl<'b, P> Sub<QuadExtField<P>> for &'b QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
-
operator.Source§fn sub(self, other: QuadExtField<P>) -> QuadExtField<P>
fn sub(self, other: QuadExtField<P>) -> QuadExtField<P>
-
operation. Read moreSource§impl<P> Sub for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Sub for QuadExtField<P>where
P: QuadExtConfig,
Source§type Output = QuadExtField<P>
type Output = QuadExtField<P>
-
operator.Source§fn sub(self, other: QuadExtField<P>) -> QuadExtField<P>
fn sub(self, other: QuadExtField<P>) -> QuadExtField<P>
-
operation. Read moreSource§impl<'a, P> SubAssign<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> SubAssign<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn sub_assign(&mut self, other: &QuadExtField<P>)
fn sub_assign(&mut self, other: &QuadExtField<P>)
-=
operation. Read moreSource§impl<'a, P> SubAssign<&'a mut QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> SubAssign<&'a mut QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn sub_assign(&mut self, other: &'a mut QuadExtField<P>)
fn sub_assign(&mut self, other: &'a mut QuadExtField<P>)
-=
operation. Read moreSource§impl<P> SubAssign for QuadExtField<P>where
P: QuadExtConfig,
impl<P> SubAssign for QuadExtField<P>where
P: QuadExtConfig,
Source§fn sub_assign(&mut self, other: QuadExtField<P>)
fn sub_assign(&mut self, other: QuadExtField<P>)
-=
operation. Read moreSource§impl<'a, P> Sum<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
impl<'a, P> Sum<&'a QuadExtField<P>> for QuadExtField<P>where
P: QuadExtConfig,
Source§fn sum<I>(iter: I) -> QuadExtField<P>where
I: Iterator<Item = &'a QuadExtField<P>>,
fn sum<I>(iter: I) -> QuadExtField<P>where
I: Iterator<Item = &'a QuadExtField<P>>,
Self
from the elements by “summing up”
the items.Source§impl<P> Sum for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Sum for QuadExtField<P>where
P: QuadExtConfig,
Source§fn sum<I>(iter: I) -> QuadExtField<P>where
I: Iterator<Item = QuadExtField<P>>,
fn sum<I>(iter: I) -> QuadExtField<P>where
I: Iterator<Item = QuadExtField<P>>,
Self
from the elements by “summing up”
the items.Source§impl<P> ToConstraintField<<P as QuadExtConfig>::BasePrimeField> for QuadExtField<P>where
P: QuadExtConfig,
<P as QuadExtConfig>::BaseField: ToConstraintField<<P as QuadExtConfig>::BasePrimeField>,
impl<P> ToConstraintField<<P as QuadExtConfig>::BasePrimeField> for QuadExtField<P>where
P: QuadExtConfig,
<P as QuadExtConfig>::BaseField: ToConstraintField<<P as QuadExtConfig>::BasePrimeField>,
fn to_field_elements(&self) -> Option<Vec<<P as QuadExtConfig>::BasePrimeField>>
Source§impl<P> Valid for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Valid for QuadExtField<P>where
P: QuadExtConfig,
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send,
) -> Result<(), SerializationError>where
Self: 'a,
Source§impl<P> Zero for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Zero for QuadExtField<P>where
P: QuadExtConfig,
Source§impl<P> Zeroize for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Zeroize for QuadExtField<P>where
P: QuadExtConfig,
impl<P> Copy for QuadExtField<P>
impl<P> Eq for QuadExtField<P>
Auto Trait Implementations§
impl<P> Freeze for QuadExtField<P>
impl<P> RefUnwindSafe for QuadExtField<P>
impl<P> Send for QuadExtField<P>
impl<P> Sync for QuadExtField<P>
impl<P> Unpin for QuadExtField<P>
impl<P> UnwindSafe for QuadExtField<P>
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
Source§impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
fn hash<H>(&self) -> GenericArray<u8, <H as OutputSizeUser>::OutputSize>where
H: Digest,
fn hash_uncompressed<H>(
&self,
) -> GenericArray<u8, <H as OutputSizeUser>::OutputSize>where
H: Digest,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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>
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