pub trait FloorAssign {
    fn floor_assign(&mut self);
}
Expand description

Replaces a number with its floor.

Required Methods

Implementations on Foreign Types

Replaces a number with its floor.

A number’s floor is the largest integer less than or equal to the number.

$x \gets \lfloor x \rfloor$.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Replaces a number with its floor.

A number’s floor is the largest integer less than or equal to the number.

$x \gets \lfloor x \rfloor$.

Worst-case complexity

Constant time and additional memory.

Examples

See here.

Implementors