pub trait WrappingSquare {
    type Output;

    fn wrapping_square(self) -> Self::Output;
}
Expand description

Squares a number, wrapping around at the boundary of the type.

Required Associated Types

Required Methods

Implementations on Foreign Types

Squares a number, wrapping around at the boundary of the type.

$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number, wrapping around at the boundary of the type.

$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number, wrapping around at the boundary of the type.

$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number, wrapping around at the boundary of the type.

$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number, wrapping around at the boundary of the type.

$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number, wrapping around at the boundary of the type.

$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number, wrapping around at the boundary of the type.

$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number, wrapping around at the boundary of the type.

$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number, wrapping around at the boundary of the type.

$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number, wrapping around at the boundary of the type.

$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number, wrapping around at the boundary of the type.

$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number, wrapping around at the boundary of the type.

$f(x) = y$, where $y \equiv x^2 \mod 2^W$ and $W$ is Self::WIDTH.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Implementors