Struct pairing_ce::bls12_381::G2

source ·
pub struct G2 { /* private fields */ }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the additive identity.
Returns a fixed generator of unknown exponent.
Determines if this point is the point at infinity.
Checks if the point is already “normalized” so that cheap affine conversion is possible.
Normalizes a slice of projective elements so that conversion to affine is cheap.
Doubles this element.
Adds another element to this element.
Adds an affine element to this element.
Negates this element.
Performs scalar multiplication of this element.
Converts this element into its affine representation.
Recommends a wNAF window table size given a scalar. Always returns a number between 2 and 22, inclusive.
Recommends a wNAF window size given the number of scalars you intend to multiply a base by. Always returns a number between 2 and 22, inclusive.
Returns references to underlying X, Y and Z coordinates. Users should check for infinity outside of this call
Returns underlying X, Y and Z coordinates. Users should check for infinity outside of this call
Creates a point from raw X, Y and Z coordinates. Point of infinity is encoded as (0,1,0) by default. On-curve check is NOT performed
Creates a point from raw X, Y and Z coordinates. Point of infinity is encoded as (0,1,0) by default. On-curve check is performed
Subtracts another element from this element.
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Generates a random instance of this type using the specified source of randomness.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.