Struct pairing_ce::Wnaf

source ·
pub struct Wnaf<W, B, S> { /* private fields */ }
Expand description

A “w-ary non-adjacent form” exponentiation context.

Implementations§

Construct a new wNAF context without allocating.

Given a base and a number of scalars, compute a window table and return a Wnaf object that can perform exponentiations with .scalar(..).

Given a scalar, compute its wNAF representation and return a Wnaf object that can perform exponentiations with .base(..).

Constructs new space for the scalar representation while borrowing the computed window table, for sending the window table across threads.

Constructs new space for the window table while borrowing the computed scalar representation, for sending the scalar representation across threads.

Performs exponentiation given a base.

Performs exponentiation given a scalar.

Trait Implementations§

Formats the value using the given formatter. Read more

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 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.