Struct pairing::bls12_381::Fq2 [] [src]

pub struct Fq2 {
    pub c0: Fq,
    pub c1: Fq,
}

An element of Fq2, represented by c0 + c1 * u.

Fields

Methods

impl Fq2
[src]

Multiply this element by the cubic and quadratic nonresidue 1 + u.

Trait Implementations

impl Copy for Fq2
[src]

impl Clone for Fq2
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Fq2
[src]

Formats the value using the given formatter.

impl Eq for Fq2
[src]

impl PartialEq for Fq2
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for Fq2
[src]

Formats the value using the given formatter. Read more

impl Ord for Fq2
[src]

Fq2 elements are ordered lexicographically.

This method returns an Ordering between self and other. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more

impl PartialOrd for Fq2
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Rand for Fq2
[src]

Generates a random instance of this type using the specified source of randomness. Read more

impl Field for Fq2
[src]

Returns the zero element of the field, the additive identity.

Returns the one element of the field, the multiplicative identity.

Returns true iff this element is zero.

Squares this element.

Doubles this element.

Negates this element.

Adds another element to this element.

Subtracts another element from this element.

Multiplies another element by this element.

Computes the multiplicative inverse of this element, if nonzero.

Exponentiates this element by a power of the base prime modulus via the Frobenius automorphism. Read more

Exponentiates this element by a number represented with u64 limbs, least significant digit first. Read more

impl SqrtField for Fq2
[src]

Returns the square root of the field element, if it is quadratic residue. Read more