Trait WrappingSquareAssign

Source
pub trait WrappingSquareAssign {
    // Required method
    fn wrapping_square_assign(&mut self);
}
Expand description

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

Required Methods§

Implementations on Foreign Types§

Source§

impl WrappingSquareAssign for i8

Source§

fn wrapping_square_assign(&mut self)

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

$x \gets 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.

Source§

impl WrappingSquareAssign for i16

Source§

fn wrapping_square_assign(&mut self)

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

$x \gets 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.

Source§

impl WrappingSquareAssign for i32

Source§

fn wrapping_square_assign(&mut self)

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

$x \gets 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.

Source§

impl WrappingSquareAssign for i64

Source§

fn wrapping_square_assign(&mut self)

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

$x \gets 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.

Source§

impl WrappingSquareAssign for i128

Source§

fn wrapping_square_assign(&mut self)

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

$x \gets 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.

Source§

impl WrappingSquareAssign for isize

Source§

fn wrapping_square_assign(&mut self)

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

$x \gets 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.

Source§

impl WrappingSquareAssign for u8

Source§

fn wrapping_square_assign(&mut self)

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

$x \gets 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.

Source§

impl WrappingSquareAssign for u16

Source§

fn wrapping_square_assign(&mut self)

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

$x \gets 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.

Source§

impl WrappingSquareAssign for u32

Source§

fn wrapping_square_assign(&mut self)

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

$x \gets 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.

Source§

impl WrappingSquareAssign for u64

Source§

fn wrapping_square_assign(&mut self)

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

$x \gets 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.

Source§

impl WrappingSquareAssign for u128

Source§

fn wrapping_square_assign(&mut self)

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

$x \gets 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.

Source§

impl WrappingSquareAssign for usize

Source§

fn wrapping_square_assign(&mut self)

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

$x \gets 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§