pub trait SquareAssign {
    // Required method
    fn square_assign(&mut self);
}
Expand description

Support for optimized squaring in-place

Required Methods§

source

fn square_assign(&mut self)

Computes the same as self * self, but may be more efficient. Writes the result in self.

Implementors§

source§

impl SquareAssign for BoxedMontyForm

Available on crate feature alloc only.
source§

impl<const LIMBS: usize> SquareAssign for MontyForm<LIMBS>