Struct pairing::bls12_381::Fq12
[−]
[src]
pub struct Fq12 { pub c0: Fq6, pub c1: Fq6, }
An element of Fq12, represented by c0 + c1 * w.
Fields
c0: Fq6
c1: Fq6
Methods
impl Fq12
[src]
Trait Implementations
impl Copy for Fq12
[src]
impl Clone for Fq12
[src]
fn clone(&self) -> Fq12
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Fq12
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for Fq12
[src]
impl PartialEq for Fq12
[src]
fn eq(&self, __arg_0: &Fq12) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Fq12) -> bool
[src]
This method tests for !=
.
impl Display for Fq12
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Rand for Fq12
[src]
fn rand<R: Rng>(rng: &mut R) -> Self
[src]
Generates a random instance of this type using the specified source of randomness. Read more
impl Field for Fq12
[src]
fn zero() -> Self
[src]
Returns the zero element of the field, the additive identity.
fn one() -> Self
[src]
Returns the one element of the field, the multiplicative identity.
fn is_zero(&self) -> bool
[src]
Returns true iff this element is zero.
fn double(&mut self)
[src]
Doubles this element.
fn negate(&mut self)
[src]
Negates this element.
fn add_assign(&mut self, other: &Self)
[src]
Adds another element to this element.
fn sub_assign(&mut self, other: &Self)
[src]
Subtracts another element from this element.
fn frobenius_map(&mut self, power: usize)
[src]
Exponentiates this element by a power of the base prime modulus via the Frobenius automorphism. Read more
fn square(&mut self)
[src]
Squares this element.
fn mul_assign(&mut self, other: &Self)
[src]
Multiplies another element by this element.
fn inverse(&self) -> Option<Self>
[src]
Computes the multiplicative inverse of this element, if nonzero.
fn pow<S: AsRef<[u64]>>(&self, exp: S) -> Self
[src]
Exponentiates this element by a number represented with u64
limbs, least significant digit first. Read more