pub trait OverflowingSquareAssign {
    fn overflowing_square_assign(&mut self) -> bool;
}
Expand description

Squares a number in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped number is assigned.

Required Methods

Implementations on Foreign Types

Squares a number in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Squares a number in place.

Returns a boolean indicating whether an arithmetic overflow occurred. If an overflow occurred, then the wrapped value is assigned.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Implementors