Struct pairing::bls12_381::Fq [] [src]

pub struct Fq(_);

Trait Implementations

impl Copy for Fq
[src]

impl Clone for Fq
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Fq
[src]

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

This method tests for !=.

impl Eq for Fq
[src]

impl Debug for Fq
[src]

Formats the value using the given formatter.

impl Ord for Fq
[src]

Fq 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 Fq
[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 Display for Fq
[src]

Formats the value using the given formatter. Read more

impl Rand for Fq
[src]

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

impl PrimeField for Fq
[src]

The prime field can be converted back and forth into this biginteger representation. Read more

Convert this prime field element into a biginteger representation.

Convert a biginteger representation into a prime field element, if the number is an element of the field. Read more

Returns the field characteristic; the modulus.

Returns how many bits are needed to represent an element of this field. Read more

Returns how many bits of information can be reliably stored in the field element. Read more

Returns the multiplicative generator of char() - 1 order. This element must also be quadratic nonresidue. Read more

Returns s such that 2s * t = char() - 1 with t odd.

Returns the 2s root of unity computed by exponentiating the multiplicative_generator() by t. Read more

Interpret a string of numbers as a (congruent) prime field element. Does not accept unnecessary leading zeroes or a blank string. Read more

impl Field for Fq
[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.

Adds another element to this element.

Doubles this element.

Subtracts another element from this element.

Negates 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

Multiplies another element by this element.

Squares this element.

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

impl SqrtField for Fq
[src]

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