Skip to main content

Square

Trait Square 

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

Value that can be multiplied by itself

Required Methods§

Source

fn square(self) -> Self

Returns the value multiplied by itself

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 AESTowerField8b

Source§

impl Square for BytewiseLookup<PackedPrimitiveType<u8, AESTowerField8b>>

Source§

impl Square for BinaryField1b

Source§

impl Square for BinaryField128bGhash

Source§

impl Square for GhashSq256b

Source§

impl Square for GhashSqSquare<PackedGhashSq1x256b>

Source§

impl Square for PackedAESBinaryField1x8b

Source§

impl Square for PackedAESBinaryField16x8b

Source§

impl Square for PackedAESBinaryField32x8b

Source§

impl Square for PackedAESBinaryField64x8b

Source§

impl Square for PackedBinaryGhash1x128b

Source§

impl Square for PackedBinaryGhash2x128b

Source§

impl Square for PackedBinaryGhash4x128b

Source§

impl Square for PackedGhashSq1x256b

Source§

impl Square for PackedGhashSq2x256b

Source§

impl<T> Square for ReuseMultiply<T>
where T: Mul<T, Output = T> + Copy,

Source§

impl<U> Square for SlicedGhashSq256b<U>

Source§

impl<U, SubU, F, const N: usize> Square for Divide<SubU, PackedPrimitiveType<U, F>, N>

Source§

impl<U: UnderlierType + Pod, Scalar: BinaryField, const N: usize> Square for Scaled<PackedPrimitiveType<ScaledUnderlier<U, N>, Scalar>>
where PackedPrimitiveType<U, Scalar>: Square,

Source§

impl<U: UnderlierType> Square for PackedPrimitiveType<U, BinaryField1b>

Source§

impl<U: Underlier128bLanes> Square for GhashSoftMul<PackedPrimitiveType<U, BinaryField128bGhash>>