Struct ark_ff::fields::models::cubic_extension::CubicExtField
source · pub struct CubicExtField<P: CubicExtConfig> {
pub c0: P::BaseField,
pub c1: P::BaseField,
pub c2: P::BaseField,
}
Expand description
An element of a cubic extension field F_p[X]/(X^3 - P::NONRESIDUE) is
represented as c0 + c1 * X + c2 * X^2, for c0, c1, c2 in P::BaseField
.
Fields§
§c0: P::BaseField
§c1: P::BaseField
§c2: P::BaseField
Implementations§
source§impl<P: Fp3Config> CubicExtField<Fp3ConfigWrapper<P>>
impl<P: Fp3Config> CubicExtField<Fp3ConfigWrapper<P>>
sourcepub fn mul_assign_by_fp(&mut self, value: &P::Fp)
pub fn mul_assign_by_fp(&mut self, value: &P::Fp)
In-place multiply all coefficients c0
, c1
, and c2
of self
by an element from Fp
.
Examples
use ark_mnt6_753::{Fq as Fp, Fq3 as Fp3};
let c0: Fp = Fp::rand(&mut test_rng());
let c1: Fp = Fp::rand(&mut test_rng());
let c2: Fp = Fp::rand(&mut test_rng());
let mut ext_element: Fp3 = Fp3::new(c0, c1, c2);
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);
assert_eq!(ext_element.c2, c2 * base_field_element);
source§impl<P: Fp6Config> CubicExtField<Fp6ConfigWrapper<P>>
impl<P: Fp6Config> CubicExtField<Fp6ConfigWrapper<P>>
pub fn mul_assign_by_fp2(&mut self, other: Fp2<P::Fp2Config>)
pub fn mul_by_fp(&mut self, element: &<P::Fp2Config as Fp2Config>::Fp)
pub fn mul_by_fp2(&mut self, element: &Fp2<P::Fp2Config>)
pub fn mul_by_1(&mut self, c1: &Fp2<P::Fp2Config>)
pub fn mul_by_01(&mut self, c0: &Fp2<P::Fp2Config>, c1: &Fp2<P::Fp2Config>)
source§impl<P: CubicExtConfig> CubicExtField<P>
impl<P: CubicExtConfig> CubicExtField<P>
sourcepub const fn new(c0: P::BaseField, c1: P::BaseField, c2: P::BaseField) -> Self
pub const fn new(c0: P::BaseField, c1: P::BaseField, c2: P::BaseField) -> Self
Create a new field element from coefficients c0
, c1
and c2
so that the result is of the form c0 + c1 * X + c2 * X^2
.
Examples
use ark_ff::models::cubic_extension::CubicExtField;
let c0: Fp2 = Fp2::rand(&mut test_rng());
let c1: Fp2 = Fp2::rand(&mut test_rng());
let c2: Fp2 = Fp2::rand(&mut test_rng());
// `Fp6` a degree-3 extension over `Fp2`.
let c: CubicExtField<Config> = Fp6::new(c0, c1, c2);
pub fn mul_assign_by_base_field(&mut self, value: &P::BaseField)
Trait Implementations§
source§impl<'a, 'b, P: CubicExtConfig> Add<&'a CubicExtField<P>> for &'b CubicExtField<P>
impl<'a, 'b, P: CubicExtConfig> Add<&'a CubicExtField<P>> for &'b CubicExtField<P>
§type Output = CubicExtField<P>
type Output = CubicExtField<P>
The resulting type after applying the
+
operator.source§fn add(self, other: &'a CubicExtField<P>) -> CubicExtField<P>
fn add(self, other: &'a CubicExtField<P>) -> CubicExtField<P>
Performs the
+
operation. Read moresource§impl<'a, P: CubicExtConfig> Add<&'a CubicExtField<P>> for CubicExtField<P>
impl<'a, P: CubicExtConfig> Add<&'a CubicExtField<P>> for CubicExtField<P>
source§impl<'a, 'b, P: CubicExtConfig> Add<&'a mut CubicExtField<P>> for &'b CubicExtField<P>
impl<'a, 'b, P: CubicExtConfig> Add<&'a mut CubicExtField<P>> for &'b CubicExtField<P>
§type Output = CubicExtField<P>
type Output = CubicExtField<P>
The resulting type after applying the
+
operator.source§fn add(self, other: &'a mut CubicExtField<P>) -> CubicExtField<P>
fn add(self, other: &'a mut CubicExtField<P>) -> CubicExtField<P>
Performs the
+
operation. Read moresource§impl<'a, P: CubicExtConfig> Add<&'a mut CubicExtField<P>> for CubicExtField<P>
impl<'a, P: CubicExtConfig> Add<&'a mut CubicExtField<P>> for CubicExtField<P>
§type Output = CubicExtField<P>
type Output = CubicExtField<P>
The resulting type after applying the
+
operator.source§fn add(self, other: &'a mut Self) -> Self
fn add(self, other: &'a mut Self) -> Self
Performs the
+
operation. Read moresource§impl<'b, P: CubicExtConfig> Add<CubicExtField<P>> for &'b CubicExtField<P>
impl<'b, P: CubicExtConfig> Add<CubicExtField<P>> for &'b CubicExtField<P>
§type Output = CubicExtField<P>
type Output = CubicExtField<P>
The resulting type after applying the
+
operator.source§fn add(self, other: CubicExtField<P>) -> CubicExtField<P>
fn add(self, other: CubicExtField<P>) -> CubicExtField<P>
Performs the
+
operation. Read moresource§impl<P: CubicExtConfig> Add<CubicExtField<P>> for CubicExtField<P>
impl<P: CubicExtConfig> Add<CubicExtField<P>> for CubicExtField<P>
source§impl<'a, P: CubicExtConfig> AddAssign<&'a CubicExtField<P>> for CubicExtField<P>
impl<'a, P: CubicExtConfig> AddAssign<&'a CubicExtField<P>> for CubicExtField<P>
source§fn add_assign(&mut self, other: &Self)
fn add_assign(&mut self, other: &Self)
Performs the
+=
operation. Read moresource§impl<'a, P: CubicExtConfig> AddAssign<&'a mut CubicExtField<P>> for CubicExtField<P>
impl<'a, P: CubicExtConfig> AddAssign<&'a mut CubicExtField<P>> for CubicExtField<P>
source§fn add_assign(&mut self, other: &'a mut Self)
fn add_assign(&mut self, other: &'a mut Self)
Performs the
+=
operation. Read moresource§impl<P: CubicExtConfig> AddAssign<CubicExtField<P>> for CubicExtField<P>
impl<P: CubicExtConfig> AddAssign<CubicExtField<P>> for CubicExtField<P>
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moresource§impl<P: CubicExtConfig> CanonicalDeserialize for CubicExtField<P>
impl<P: CubicExtConfig> CanonicalDeserialize for CubicExtField<P>
source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate ) -> Result<Self, SerializationError>
The general deserialize method that takes in customization flags.
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: CubicExtConfig> CanonicalDeserializeWithFlags for CubicExtField<P>
impl<P: CubicExtConfig> CanonicalDeserializeWithFlags for CubicExtField<P>
source§fn deserialize_with_flags<R: Read, F: Flags>(
reader: R
) -> Result<(Self, F), SerializationError>
fn deserialize_with_flags<R: Read, F: Flags>( reader: R ) -> Result<(Self, F), SerializationError>
Reads
Self
and Flags
from reader
.
Returns empty flags by default.source§impl<P: CubicExtConfig> CanonicalSerialize for CubicExtField<P>
impl<P: CubicExtConfig> CanonicalSerialize for CubicExtField<P>
source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
_compress: Compress
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, _compress: Compress ) -> Result<(), SerializationError>
The general serialize method that takes in customization flags.
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: CubicExtConfig> CanonicalSerializeWithFlags for CubicExtField<P>
impl<P: CubicExtConfig> CanonicalSerializeWithFlags for CubicExtField<P>
source§fn serialize_with_flags<W: Write, F: Flags>(
&self,
writer: W,
flags: F
) -> Result<(), SerializationError>
fn serialize_with_flags<W: Write, F: Flags>( &self, writer: W, flags: F ) -> Result<(), SerializationError>
Serializes
self
and flags
into writer
.source§fn serialized_size_with_flags<F: Flags>(&self) -> usize
fn serialized_size_with_flags<F: Flags>(&self) -> usize
Serializes
self
and flags
into writer
.source§impl<P> Clone for CubicExtField<P>where
P: CubicExtConfig,
impl<P> Clone for CubicExtField<P>where P: CubicExtConfig,
source§impl<P> Debug for CubicExtField<P>where
P: CubicExtConfig,
impl<P> Debug for CubicExtField<P>where P: CubicExtConfig,
source§impl<P> Default for CubicExtField<P>where
P: CubicExtConfig,
impl<P> Default for CubicExtField<P>where P: CubicExtConfig,
source§impl<P: CubicExtConfig> Display for CubicExtField<P>
impl<P: CubicExtConfig> Display for CubicExtField<P>
source§impl<P: CubicExtConfig> Distribution<CubicExtField<P>> for Standard
impl<P: CubicExtConfig> Distribution<CubicExtField<P>> for Standard
source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> CubicExtField<P>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> CubicExtField<P>
Generate a random value of
T
, using rng
as the source of randomness.source§impl<'a, 'b, P: CubicExtConfig> Div<&'a CubicExtField<P>> for &'b CubicExtField<P>
impl<'a, 'b, P: CubicExtConfig> Div<&'a CubicExtField<P>> for &'b CubicExtField<P>
§type Output = CubicExtField<P>
type Output = CubicExtField<P>
The resulting type after applying the
/
operator.source§fn div(self, other: &'a CubicExtField<P>) -> CubicExtField<P>
fn div(self, other: &'a CubicExtField<P>) -> CubicExtField<P>
Performs the
/
operation. Read moresource§impl<'a, P: CubicExtConfig> Div<&'a CubicExtField<P>> for CubicExtField<P>
impl<'a, P: CubicExtConfig> Div<&'a CubicExtField<P>> for CubicExtField<P>
source§impl<'a, 'b, P: CubicExtConfig> Div<&'a mut CubicExtField<P>> for &'b CubicExtField<P>
impl<'a, 'b, P: CubicExtConfig> Div<&'a mut CubicExtField<P>> for &'b CubicExtField<P>
§type Output = CubicExtField<P>
type Output = CubicExtField<P>
The resulting type after applying the
/
operator.source§fn div(self, other: &'a mut CubicExtField<P>) -> CubicExtField<P>
fn div(self, other: &'a mut CubicExtField<P>) -> CubicExtField<P>
Performs the
/
operation. Read moresource§impl<'a, P: CubicExtConfig> Div<&'a mut CubicExtField<P>> for CubicExtField<P>
impl<'a, P: CubicExtConfig> Div<&'a mut CubicExtField<P>> for CubicExtField<P>
§type Output = CubicExtField<P>
type Output = CubicExtField<P>
The resulting type after applying the
/
operator.source§fn div(self, other: &'a mut Self) -> Self
fn div(self, other: &'a mut Self) -> Self
Performs the
/
operation. Read moresource§impl<'b, P: CubicExtConfig> Div<CubicExtField<P>> for &'b CubicExtField<P>
impl<'b, P: CubicExtConfig> Div<CubicExtField<P>> for &'b CubicExtField<P>
§type Output = CubicExtField<P>
type Output = CubicExtField<P>
The resulting type after applying the
/
operator.source§fn div(self, other: CubicExtField<P>) -> CubicExtField<P>
fn div(self, other: CubicExtField<P>) -> CubicExtField<P>
Performs the
/
operation. Read moresource§impl<P: CubicExtConfig> Div<CubicExtField<P>> for CubicExtField<P>
impl<P: CubicExtConfig> Div<CubicExtField<P>> for CubicExtField<P>
source§impl<'a, P: CubicExtConfig> DivAssign<&'a CubicExtField<P>> for CubicExtField<P>
impl<'a, P: CubicExtConfig> DivAssign<&'a CubicExtField<P>> for CubicExtField<P>
source§fn div_assign(&mut self, other: &Self)
fn div_assign(&mut self, other: &Self)
Performs the
/=
operation. Read moresource§impl<'a, P: CubicExtConfig> DivAssign<&'a mut CubicExtField<P>> for CubicExtField<P>
impl<'a, P: CubicExtConfig> DivAssign<&'a mut CubicExtField<P>> for CubicExtField<P>
source§fn div_assign(&mut self, other: &'a mut Self)
fn div_assign(&mut self, other: &'a mut Self)
Performs the
/=
operation. Read moresource§impl<P: CubicExtConfig> DivAssign<CubicExtField<P>> for CubicExtField<P>
impl<P: CubicExtConfig> DivAssign<CubicExtField<P>> for CubicExtField<P>
source§fn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the
/=
operation. Read moresource§impl<P: CubicExtConfig> Field for CubicExtField<P>
impl<P: CubicExtConfig> Field for CubicExtField<P>
source§fn legendre(&self) -> LegendreSymbol
fn legendre(&self) -> LegendreSymbol
Returns the Legendre symbol.
type BasePrimeField = <P as CubicExtConfig>::BasePrimeField
type BasePrimeFieldIter = Chain<<<P as CubicExtConfig>::BaseField as Field>::BasePrimeFieldIter, Chain<<<P as CubicExtConfig>::BaseField as Field>::BasePrimeFieldIter, <<P as CubicExtConfig>::BaseField as Field>::BasePrimeFieldIter>>
source§const SQRT_PRECOMP: Option<SqrtPrecomputation<Self>> = P::SQRT_PRECOMP
const SQRT_PRECOMP: Option<SqrtPrecomputation<Self>> = P::SQRT_PRECOMP
Determines the algorithm for computing square roots.
source§fn extension_degree() -> u64
fn extension_degree() -> u64
Returns the extension degree of this field with respect
to
Self::BasePrimeField
.source§fn from_base_prime_field(elem: Self::BasePrimeField) -> Self
fn from_base_prime_field(elem: Self::BasePrimeField) -> Self
Constructs a field element from a single base prime field elements. Read more
fn to_base_prime_field_elements(&self) -> Self::BasePrimeFieldIter
source§fn from_base_prime_field_elems(elems: &[Self::BasePrimeField]) -> Option<Self>
fn from_base_prime_field_elems(elems: &[Self::BasePrimeField]) -> Option<Self>
Convert a slice of base prime field elements into a field element.
If the slice length != Self::extension_degree(), must return None.
source§fn double_in_place(&mut self) -> &mut Self
fn double_in_place(&mut self) -> &mut Self
Doubles
self
in place.source§fn neg_in_place(&mut self) -> &mut Self
fn neg_in_place(&mut self) -> &mut Self
Negates
self
in place.source§fn from_random_bytes_with_flags<F: Flags>(bytes: &[u8]) -> Option<(Self, F)>
fn from_random_bytes_with_flags<F: Flags>(bytes: &[u8]) -> Option<(Self, F)>
Attempt to deserialize a field element, splitting the bitflags metadata
according to
F
specification. Returns None
if the deserialization
fails. Read moresource§fn from_random_bytes(bytes: &[u8]) -> Option<Self>
fn from_random_bytes(bytes: &[u8]) -> Option<Self>
Attempt to deserialize a field element. Returns
None
if the
deserialization fails. Read moresource§fn square_in_place(&mut self) -> &mut Self
fn square_in_place(&mut self) -> &mut Self
Squares
self
in place.source§fn inverse(&self) -> Option<Self>
fn inverse(&self) -> Option<Self>
Computes the multiplicative inverse of
self
if self
is nonzero.source§fn inverse_in_place(&mut self) -> Option<&mut Self>
fn inverse_in_place(&mut self) -> Option<&mut Self>
If
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)
Sets
self
to self^s
, where s = Self::BasePrimeField::MODULUS^power
.
This is also called the Frobenius automorphism.source§fn characteristic() -> &'static [u64]
fn characteristic() -> &'static [u64]
Returns the characteristic of the field,
in little-endian representation.
source§fn sqrt_in_place(&mut self) -> Option<&mut Self>
fn sqrt_in_place(&mut self) -> Option<&mut Self>
Sets
self
to be the square root of self
, if it exists.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
Returns
sum([a_i * b_i])
.source§fn frobenius_map(&self, power: usize) -> Self
fn frobenius_map(&self, power: usize) -> Self
Returns
self^s
, where s = Self::BasePrimeField::MODULUS^power
.
This is also called the Frobenius automorphism.source§fn pow<S: AsRef<[u64]>>(&self, exp: S) -> Self
fn pow<S: AsRef<[u64]>>(&self, exp: S) -> Self
Returns
self^exp
, where exp
is an integer represented with u64
limbs,
least significant limb first.source§fn pow_with_table<S: AsRef<[u64]>>(powers_of_2: &[Self], exp: S) -> Option<Self>
fn pow_with_table<S: AsRef<[u64]>>(powers_of_2: &[Self], exp: S) -> Option<Self>
Exponentiates a field element
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: CubicExtConfig> From<bool> for CubicExtField<P>
impl<P: CubicExtConfig> From<bool> for CubicExtField<P>
source§impl<P: CubicExtConfig> From<i128> for CubicExtField<P>
impl<P: CubicExtConfig> From<i128> for CubicExtField<P>
source§impl<P: CubicExtConfig> From<i16> for CubicExtField<P>
impl<P: CubicExtConfig> From<i16> for CubicExtField<P>
source§impl<P: CubicExtConfig> From<i32> for CubicExtField<P>
impl<P: CubicExtConfig> From<i32> for CubicExtField<P>
source§impl<P: CubicExtConfig> From<i64> for CubicExtField<P>
impl<P: CubicExtConfig> From<i64> for CubicExtField<P>
source§impl<P: CubicExtConfig> From<i8> for CubicExtField<P>
impl<P: CubicExtConfig> From<i8> for CubicExtField<P>
source§impl<P: CubicExtConfig> From<u128> for CubicExtField<P>
impl<P: CubicExtConfig> From<u128> for CubicExtField<P>
source§impl<P: CubicExtConfig> From<u16> for CubicExtField<P>
impl<P: CubicExtConfig> From<u16> for CubicExtField<P>
source§impl<P: CubicExtConfig> From<u32> for CubicExtField<P>
impl<P: CubicExtConfig> From<u32> for CubicExtField<P>
source§impl<P: CubicExtConfig> From<u64> for CubicExtField<P>
impl<P: CubicExtConfig> From<u64> for CubicExtField<P>
source§impl<P: CubicExtConfig> From<u8> for CubicExtField<P>
impl<P: CubicExtConfig> From<u8> for CubicExtField<P>
source§impl<P> Hash for CubicExtField<P>where
P: CubicExtConfig,
impl<P> Hash for CubicExtField<P>where P: CubicExtConfig,
source§impl<'a, 'b, P: CubicExtConfig> Mul<&'a CubicExtField<P>> for &'b CubicExtField<P>
impl<'a, 'b, P: CubicExtConfig> Mul<&'a CubicExtField<P>> for &'b CubicExtField<P>
§type Output = CubicExtField<P>
type Output = CubicExtField<P>
The resulting type after applying the
*
operator.source§fn mul(self, other: &'a CubicExtField<P>) -> CubicExtField<P>
fn mul(self, other: &'a CubicExtField<P>) -> CubicExtField<P>
Performs the
*
operation. Read moresource§impl<'a, P: CubicExtConfig> Mul<&'a CubicExtField<P>> for CubicExtField<P>
impl<'a, P: CubicExtConfig> Mul<&'a CubicExtField<P>> for CubicExtField<P>
source§impl<'a, 'b, P: CubicExtConfig> Mul<&'a mut CubicExtField<P>> for &'b CubicExtField<P>
impl<'a, 'b, P: CubicExtConfig> Mul<&'a mut CubicExtField<P>> for &'b CubicExtField<P>
§type Output = CubicExtField<P>
type Output = CubicExtField<P>
The resulting type after applying the
*
operator.source§fn mul(self, other: &'a mut CubicExtField<P>) -> CubicExtField<P>
fn mul(self, other: &'a mut CubicExtField<P>) -> CubicExtField<P>
Performs the
*
operation. Read moresource§impl<'a, P: CubicExtConfig> Mul<&'a mut CubicExtField<P>> for CubicExtField<P>
impl<'a, P: CubicExtConfig> Mul<&'a mut CubicExtField<P>> for CubicExtField<P>
§type Output = CubicExtField<P>
type Output = CubicExtField<P>
The resulting type after applying the
*
operator.source§fn mul(self, other: &'a mut Self) -> Self
fn mul(self, other: &'a mut Self) -> Self
Performs the
*
operation. Read moresource§impl<'b, P: CubicExtConfig> Mul<CubicExtField<P>> for &'b CubicExtField<P>
impl<'b, P: CubicExtConfig> Mul<CubicExtField<P>> for &'b CubicExtField<P>
§type Output = CubicExtField<P>
type Output = CubicExtField<P>
The resulting type after applying the
*
operator.source§fn mul(self, other: CubicExtField<P>) -> CubicExtField<P>
fn mul(self, other: CubicExtField<P>) -> CubicExtField<P>
Performs the
*
operation. Read moresource§impl<P: CubicExtConfig> Mul<CubicExtField<P>> for CubicExtField<P>
impl<P: CubicExtConfig> Mul<CubicExtField<P>> for CubicExtField<P>
source§impl<'a, P: CubicExtConfig> MulAssign<&'a CubicExtField<P>> for CubicExtField<P>
impl<'a, P: CubicExtConfig> MulAssign<&'a CubicExtField<P>> for CubicExtField<P>
source§fn mul_assign(&mut self, other: &Self)
fn mul_assign(&mut self, other: &Self)
Performs the
*=
operation. Read moresource§impl<'a, P: CubicExtConfig> MulAssign<&'a mut CubicExtField<P>> for CubicExtField<P>
impl<'a, P: CubicExtConfig> MulAssign<&'a mut CubicExtField<P>> for CubicExtField<P>
source§fn mul_assign(&mut self, other: &'a mut Self)
fn mul_assign(&mut self, other: &'a mut Self)
Performs the
*=
operation. Read moresource§impl<P: CubicExtConfig> MulAssign<CubicExtField<P>> for CubicExtField<P>
impl<P: CubicExtConfig> MulAssign<CubicExtField<P>> for CubicExtField<P>
source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*=
operation. Read moresource§impl<P: CubicExtConfig> Neg for CubicExtField<P>
impl<P: CubicExtConfig> Neg for CubicExtField<P>
source§impl<P: CubicExtConfig> One for CubicExtField<P>
impl<P: CubicExtConfig> One for CubicExtField<P>
source§impl<P: CubicExtConfig> Ord for CubicExtField<P>
impl<P: CubicExtConfig> Ord for CubicExtField<P>
CubicExtField
elements are ordered lexicographically.
source§impl<P> PartialEq<CubicExtField<P>> for CubicExtField<P>where
P: CubicExtConfig,
impl<P> PartialEq<CubicExtField<P>> for CubicExtField<P>where P: CubicExtConfig,
source§impl<P: CubicExtConfig> PartialOrd<CubicExtField<P>> for CubicExtField<P>
impl<P: CubicExtConfig> PartialOrd<CubicExtField<P>> for CubicExtField<P>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, P: CubicExtConfig> Product<&'a CubicExtField<P>> for CubicExtField<P>
impl<'a, P: CubicExtConfig> Product<&'a CubicExtField<P>> for CubicExtField<P>
source§impl<P: CubicExtConfig> Product<CubicExtField<P>> for CubicExtField<P>
impl<P: CubicExtConfig> Product<CubicExtField<P>> for CubicExtField<P>
source§impl<'a, 'b, P: CubicExtConfig> Sub<&'a CubicExtField<P>> for &'b CubicExtField<P>
impl<'a, 'b, P: CubicExtConfig> Sub<&'a CubicExtField<P>> for &'b CubicExtField<P>
§type Output = CubicExtField<P>
type Output = CubicExtField<P>
The resulting type after applying the
-
operator.source§fn sub(self, other: &'a CubicExtField<P>) -> CubicExtField<P>
fn sub(self, other: &'a CubicExtField<P>) -> CubicExtField<P>
Performs the
-
operation. Read moresource§impl<'a, P: CubicExtConfig> Sub<&'a CubicExtField<P>> for CubicExtField<P>
impl<'a, P: CubicExtConfig> Sub<&'a CubicExtField<P>> for CubicExtField<P>
source§impl<'a, 'b, P: CubicExtConfig> Sub<&'a mut CubicExtField<P>> for &'b CubicExtField<P>
impl<'a, 'b, P: CubicExtConfig> Sub<&'a mut CubicExtField<P>> for &'b CubicExtField<P>
§type Output = CubicExtField<P>
type Output = CubicExtField<P>
The resulting type after applying the
-
operator.source§fn sub(self, other: &'a mut CubicExtField<P>) -> CubicExtField<P>
fn sub(self, other: &'a mut CubicExtField<P>) -> CubicExtField<P>
Performs the
-
operation. Read moresource§impl<'a, P: CubicExtConfig> Sub<&'a mut CubicExtField<P>> for CubicExtField<P>
impl<'a, P: CubicExtConfig> Sub<&'a mut CubicExtField<P>> for CubicExtField<P>
§type Output = CubicExtField<P>
type Output = CubicExtField<P>
The resulting type after applying the
-
operator.source§fn sub(self, other: &'a mut Self) -> Self
fn sub(self, other: &'a mut Self) -> Self
Performs the
-
operation. Read moresource§impl<'b, P: CubicExtConfig> Sub<CubicExtField<P>> for &'b CubicExtField<P>
impl<'b, P: CubicExtConfig> Sub<CubicExtField<P>> for &'b CubicExtField<P>
§type Output = CubicExtField<P>
type Output = CubicExtField<P>
The resulting type after applying the
-
operator.source§fn sub(self, other: CubicExtField<P>) -> CubicExtField<P>
fn sub(self, other: CubicExtField<P>) -> CubicExtField<P>
Performs the
-
operation. Read moresource§impl<P: CubicExtConfig> Sub<CubicExtField<P>> for CubicExtField<P>
impl<P: CubicExtConfig> Sub<CubicExtField<P>> for CubicExtField<P>
source§impl<'a, P: CubicExtConfig> SubAssign<&'a CubicExtField<P>> for CubicExtField<P>
impl<'a, P: CubicExtConfig> SubAssign<&'a CubicExtField<P>> for CubicExtField<P>
source§fn sub_assign(&mut self, other: &Self)
fn sub_assign(&mut self, other: &Self)
Performs the
-=
operation. Read moresource§impl<'a, P: CubicExtConfig> SubAssign<&'a mut CubicExtField<P>> for CubicExtField<P>
impl<'a, P: CubicExtConfig> SubAssign<&'a mut CubicExtField<P>> for CubicExtField<P>
source§fn sub_assign(&mut self, other: &'a mut Self)
fn sub_assign(&mut self, other: &'a mut Self)
Performs the
-=
operation. Read moresource§impl<P: CubicExtConfig> SubAssign<CubicExtField<P>> for CubicExtField<P>
impl<P: CubicExtConfig> SubAssign<CubicExtField<P>> for CubicExtField<P>
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read more