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

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 Square for BoxedMontyForm

Source§

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

Source§

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