Skip to main content

Square

Trait Square 

Source
pub trait Square {
    // Required method
    fn square(&self) -> Self;
}
Expand description

Support for optimized squaring

Required Methods§

Source

fn square(&self) -> Self

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

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<MOD: ConstMontyParams<LIMBS>, const LIMBS: usize> Square for ConstMontyForm<MOD, LIMBS>

Source§

impl<const LIMBS: usize> Square for FixedMontyForm<LIMBS>