Skip to main content
This is unreleased documentation for the main (development) branch of crypto-glue.

SquareAssign

Trait SquareAssign 

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§