pub trait SquareAssign {
// Required method
fn square_assign(&mut self);
}Expand description
Support for optimized squaring in-place
Required Methods§
Sourcefn square_assign(&mut self)
fn square_assign(&mut self)
Computes the same as self * self, but may be more efficient.
Writes the result in self.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl SquareAssign for BoxedMontyForm
Available on crate feature
alloc only.