Struct ark_ff::fields::models::cubic_extension::CubicExtField [−][src]
Fields
c0: P::BaseField
c1: P::BaseField
c2: P::BaseField
Implementations
impl<P: Fp3Parameters> CubicExtField<Fp3ParamsWrapper<P>>
[src]
pub fn mul_assign_by_fp(&mut self, value: &P::Fp)
[src]
pub fn qnr_to_t() -> Self
[src]
Returns the value of QNR^T.
impl<P: Fp6Parameters> CubicExtField<Fp6ParamsWrapper<P>>
[src]
pub fn mul_assign_by_fp2(&mut self, other: Fp2<P::Fp2Params>)
[src]
pub fn mul_by_fp(&mut self, element: &<P::Fp2Params as Fp2Parameters>::Fp)
[src]
pub fn mul_by_fp2(&mut self, element: &Fp2<P::Fp2Params>)
[src]
pub fn mul_by_1(&mut self, c1: &Fp2<P::Fp2Params>)
[src]
pub fn mul_by_01(&mut self, c0: &Fp2<P::Fp2Params>, c1: &Fp2<P::Fp2Params>)
[src]
impl<P: CubicExtParameters> CubicExtField<P>
[src]
pub fn new(c0: P::BaseField, c1: P::BaseField, c2: P::BaseField) -> Self
[src]
pub fn mul_assign_by_base_field(&mut self, value: &P::BaseField)
[src]
pub fn norm(&self) -> P::BaseField
[src]
Calculate the norm of an element with respect to the base field P::BaseField
.
Trait Implementations
impl<'a, P: CubicExtParameters> Add<&'a CubicExtField<P>> for CubicExtField<P>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: &Self) -> Self
[src]
impl<'a, P: CubicExtParameters> Add<&'a mut CubicExtField<P>> for CubicExtField<P>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: &'a mut Self) -> Self
[src]
impl<P: CubicExtParameters> Add<CubicExtField<P>> for CubicExtField<P>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl<'a, P: CubicExtParameters> AddAssign<&'a CubicExtField<P>> for CubicExtField<P>
[src]
fn add_assign(&mut self, other: &Self)
[src]
impl<'a, P: CubicExtParameters> AddAssign<&'a mut CubicExtField<P>> for CubicExtField<P>
[src]
fn add_assign(&mut self, other: &'a mut Self)
[src]
impl<P: CubicExtParameters> AddAssign<CubicExtField<P>> for CubicExtField<P>
[src]
fn add_assign(&mut self, other: Self)
[src]
impl<P: CubicExtParameters> CanonicalDeserialize for CubicExtField<P>
[src]
fn deserialize<R: Read>(reader: R) -> Result<Self, SerializationError>
[src]
pub fn deserialize_uncompressed<R>(
reader: R
) -> Result<Self, SerializationError> where
R: Read,
[src]
reader: R
) -> Result<Self, SerializationError> where
R: Read,
pub fn deserialize_unchecked<R>(reader: R) -> Result<Self, SerializationError> where
R: Read,
[src]
R: Read,
impl<P: CubicExtParameters> CanonicalDeserializeWithFlags for CubicExtField<P>
[src]
fn deserialize_with_flags<R: Read, F: Flags>(
reader: R
) -> Result<(Self, F), SerializationError>
[src]
reader: R
) -> Result<(Self, F), SerializationError>
impl<P: CubicExtParameters> CanonicalSerialize for CubicExtField<P>
[src]
fn serialize<W: Write>(&self, writer: W) -> Result<(), SerializationError>
[src]
fn serialized_size(&self) -> usize
[src]
pub fn serialize_uncompressed<W>(
&self,
writer: W
) -> Result<(), SerializationError> where
W: Write,
[src]
&self,
writer: W
) -> Result<(), SerializationError> where
W: Write,
pub fn serialize_unchecked<W>(
&self,
writer: W
) -> Result<(), SerializationError> where
W: Write,
[src]
&self,
writer: W
) -> Result<(), SerializationError> where
W: Write,
pub fn uncompressed_size(&self) -> usize
[src]
impl<P: CubicExtParameters> CanonicalSerializeWithFlags for CubicExtField<P>
[src]
fn serialize_with_flags<W: Write, F: Flags>(
&self,
writer: W,
flags: F
) -> Result<(), SerializationError>
[src]
&self,
writer: W,
flags: F
) -> Result<(), SerializationError>
fn serialized_size_with_flags<F: Flags>(&self) -> usize
[src]
impl<P: CubicExtParameters> Clone for CubicExtField<P> where
P: CubicExtParameters,
[src]
P: CubicExtParameters,
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<P: CubicExtParameters> Copy for CubicExtField<P> where
P: CubicExtParameters,
[src]
P: CubicExtParameters,
impl<P: CubicExtParameters> Debug for CubicExtField<P> where
P: CubicExtParameters,
[src]
P: CubicExtParameters,
impl<P: CubicExtParameters> Default for CubicExtField<P> where
P: CubicExtParameters,
[src]
P: CubicExtParameters,
impl<P: CubicExtParameters> Display for CubicExtField<P>
[src]
impl<'a, P: CubicExtParameters> Div<&'a CubicExtField<P>> for CubicExtField<P>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: &Self) -> Self
[src]
impl<'a, P: CubicExtParameters> Div<&'a mut CubicExtField<P>> for CubicExtField<P>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: &'a mut Self) -> Self
[src]
impl<P: CubicExtParameters> Div<CubicExtField<P>> for CubicExtField<P>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: Self) -> Self
[src]
impl<'a, P: CubicExtParameters> DivAssign<&'a CubicExtField<P>> for CubicExtField<P>
[src]
fn div_assign(&mut self, other: &Self)
[src]
impl<'a, P: CubicExtParameters> DivAssign<&'a mut CubicExtField<P>> for CubicExtField<P>
[src]
fn div_assign(&mut self, other: &'a mut Self)
[src]
impl<P: CubicExtParameters> DivAssign<CubicExtField<P>> for CubicExtField<P>
[src]
fn div_assign(&mut self, other: Self)
[src]
impl<P: CubicExtParameters> Eq for CubicExtField<P> where
P: CubicExtParameters,
[src]
P: CubicExtParameters,
impl<P: CubicExtParameters> Field for CubicExtField<P>
[src]
type BasePrimeField = P::BasePrimeField
fn extension_degree() -> u64
[src]
fn from_base_prime_field_elems(elems: &[Self::BasePrimeField]) -> Option<Self>
[src]
fn double(&self) -> Self
[src]
fn double_in_place(&mut self) -> &mut Self
[src]
fn from_random_bytes_with_flags<F: Flags>(bytes: &[u8]) -> Option<(Self, F)>
[src]
fn from_random_bytes(bytes: &[u8]) -> Option<Self>
[src]
fn square(&self) -> Self
[src]
fn square_in_place(&mut self) -> &mut Self
[src]
fn inverse(&self) -> Option<Self>
[src]
fn inverse_in_place(&mut self) -> Option<&mut Self>
[src]
fn frobenius_map(&mut self, power: usize)
[src]
fn characteristic<'a>() -> &'a [u64]
[src]
#[must_use]fn pow<S: AsRef<[u64]>>(&self, exp: S) -> Self
[src]
fn pow_with_table<S: AsRef<[u64]>>(powers_of_2: &[Self], exp: S) -> Option<Self>
[src]
impl<P: CubicExtParameters> From<bool> for CubicExtField<P>
[src]
impl<P: CubicExtParameters> From<u128> for CubicExtField<P>
[src]
impl<P: CubicExtParameters> From<u16> for CubicExtField<P>
[src]
impl<P: CubicExtParameters> From<u32> for CubicExtField<P>
[src]
impl<P: CubicExtParameters> From<u64> for CubicExtField<P>
[src]
impl<P: CubicExtParameters> From<u8> for CubicExtField<P>
[src]
impl<P: CubicExtParameters> FromBytes for CubicExtField<P>
[src]
impl<P: CubicExtParameters> Hash for CubicExtField<P> where
P: CubicExtParameters,
[src]
P: CubicExtParameters,
fn hash<__HP>(&self, __state: &mut __HP) where
__HP: Hasher,
[src]
__HP: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a, P: CubicExtParameters> Mul<&'a CubicExtField<P>> for CubicExtField<P>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: &Self) -> Self
[src]
impl<'a, P: CubicExtParameters> Mul<&'a mut CubicExtField<P>> for CubicExtField<P>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: &'a mut Self) -> Self
[src]
impl<P: CubicExtParameters> Mul<CubicExtField<P>> for CubicExtField<P>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self
[src]
impl<'a, P: CubicExtParameters> MulAssign<&'a CubicExtField<P>> for CubicExtField<P>
[src]
fn mul_assign(&mut self, other: &Self)
[src]
impl<'a, P: CubicExtParameters> MulAssign<&'a mut CubicExtField<P>> for CubicExtField<P>
[src]
fn mul_assign(&mut self, other: &'a mut Self)
[src]
impl<P: CubicExtParameters> MulAssign<CubicExtField<P>> for CubicExtField<P>
[src]
fn mul_assign(&mut self, other: Self)
[src]
impl<P: CubicExtParameters> Neg for CubicExtField<P>
[src]
impl<P: CubicExtParameters> One for CubicExtField<P>
[src]
impl<P: CubicExtParameters> Ord for CubicExtField<P>
[src]
CubicExtField
elements are ordered lexicographically.
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<P: CubicExtParameters> PartialEq<CubicExtField<P>> for CubicExtField<P> where
P: CubicExtParameters,
[src]
P: CubicExtParameters,
impl<P: CubicExtParameters> PartialOrd<CubicExtField<P>> for CubicExtField<P>
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a, P: CubicExtParameters> Product<&'a CubicExtField<P>> for CubicExtField<P>
[src]
impl<P: CubicExtParameters> Product<CubicExtField<P>> for CubicExtField<P>
[src]
impl<'a, P: CubicExtParameters> Sub<&'a CubicExtField<P>> for CubicExtField<P>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: &Self) -> Self
[src]
impl<'a, P: CubicExtParameters> Sub<&'a mut CubicExtField<P>> for CubicExtField<P>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: &'a mut Self) -> Self
[src]
impl<P: CubicExtParameters> Sub<CubicExtField<P>> for CubicExtField<P>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
impl<'a, P: CubicExtParameters> SubAssign<&'a CubicExtField<P>> for CubicExtField<P>
[src]
fn sub_assign(&mut self, other: &Self)
[src]
impl<'a, P: CubicExtParameters> SubAssign<&'a mut CubicExtField<P>> for CubicExtField<P>
[src]
fn sub_assign(&mut self, other: &'a mut Self)
[src]
impl<P: CubicExtParameters> SubAssign<CubicExtField<P>> for CubicExtField<P>
[src]
fn sub_assign(&mut self, other: Self)
[src]
impl<'a, P: CubicExtParameters> Sum<&'a CubicExtField<P>> for CubicExtField<P>
[src]
impl<P: CubicExtParameters> Sum<CubicExtField<P>> for CubicExtField<P>
[src]
impl<P: CubicExtParameters> ToBytes for CubicExtField<P>
[src]
impl<P: CubicExtParameters> ToConstraintField<<P as CubicExtParameters>::BasePrimeField> for CubicExtField<P> where
P::BaseField: ToConstraintField<P::BasePrimeField>,
[src]
P::BaseField: ToConstraintField<P::BasePrimeField>,
fn to_field_elements(&self) -> Option<Vec<P::BasePrimeField>>
[src]
impl<P: CubicExtParameters> Zero for CubicExtField<P>
[src]
impl<P: CubicExtParameters> Zeroize for CubicExtField<P>
[src]
Auto Trait Implementations
impl<P> Send for CubicExtField<P>
impl<P> Sync for CubicExtField<P>
impl<P> Unpin for CubicExtField<P> where
P: Unpin,
<P as CubicExtParameters>::BaseField: Unpin,
P: Unpin,
<P as CubicExtParameters>::BaseField: 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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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<T> UniformRand for T where
Standard: Distribution<T>,
[src]
Standard: Distribution<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,