pub trait FloorSqrtAssign {
    fn floor_sqrt_assign(&mut self);
}
Expand description

Replaces a number with the floor of its square root.

Required Methods

Implementations on Foreign Types

Replaces an integer with the floor of its square root.

$x \gets \lfloor\sqrt{x}\rfloor$.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if self is negative.

Examples

See here.

Replaces an integer with the floor of its square root.

$x \gets \lfloor\sqrt{x}\rfloor$.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if self is negative.

Examples

See here.

Replaces an integer with the floor of its square root.

$x \gets \lfloor\sqrt{x}\rfloor$.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if self is negative.

Examples

See here.

Replaces an integer with the floor of its square root.

$x \gets \lfloor\sqrt{x}\rfloor$.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if self is negative.

Examples

See here.

Replaces an integer with the floor of its square root.

$x \gets \lfloor\sqrt{x}\rfloor$.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if self is negative.

Examples

See here.

Replaces an integer with the floor of its square root.

$x \gets \lfloor\sqrt{x}\rfloor$.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if self is negative.

Examples

See here.

Replaces an integer with the floor of its square root.

$x \gets \lfloor\sqrt{x}\rfloor$.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if self is negative.

Examples

See here.

Replaces an integer with the floor of its square root.

$x \gets \lfloor\sqrt{x}\rfloor$.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if self is negative.

Examples

See here.

Replaces an integer with the floor of its square root.

$x \gets \lfloor\sqrt{x}\rfloor$.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if self is negative.

Examples

See here.

Replaces an integer with the floor of its square root.

$x \gets \lfloor\sqrt{x}\rfloor$.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if self is negative.

Examples

See here.

Replaces an integer with the floor of its square root.

$x \gets \lfloor\sqrt{x}\rfloor$.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if self is negative.

Examples

See here.

Replaces an integer with the floor of its square root.

$x \gets \lfloor\sqrt{x}\rfloor$.

Worst-case complexity

Constant time and additional memory.

Panics

Panics if self is negative.

Examples

See here.

Implementors