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", so this trait is not object safe.

Implementors§

Source§

impl Square for BoxedMontyForm

Available on crate feature alloc only.
Source§

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

Source§

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