pub struct ExponentiationBuilder<'a> { /* private fields */ }Expand description
Builder for exponentiation operations.
This builder allows configuring exponentiation parameters and provides a fluent API for complex exponentiation operations.
Implementations§
Source§impl<'a> ExponentiationBuilder<'a>
impl<'a> ExponentiationBuilder<'a>
Sourcepub fn new(base: &'a FieldElement, exponent: &'a BigInt) -> Self
pub fn new(base: &'a FieldElement, exponent: &'a BigInt) -> Self
Create a new exponentiation builder.
Sourcepub fn constant_time(self, enabled: bool) -> Self
pub fn constant_time(self, enabled: bool) -> Self
Enable or disable constant-time operations.
Sourcepub fn build(self) -> ConfiguredExponentiation<'a>
pub fn build(self) -> ConfiguredExponentiation<'a>
Build the configured operation.
Trait Implementations§
Source§impl<'a> Clone for ExponentiationBuilder<'a>
impl<'a> Clone for ExponentiationBuilder<'a>
Source§fn clone(&self) -> ExponentiationBuilder<'a>
fn clone(&self) -> ExponentiationBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for ExponentiationBuilder<'a>
impl<'a> RefUnwindSafe for ExponentiationBuilder<'a>
impl<'a> Send for ExponentiationBuilder<'a>
impl<'a> Sync for ExponentiationBuilder<'a>
impl<'a> Unpin for ExponentiationBuilder<'a>
impl<'a> UnwindSafe for ExponentiationBuilder<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more