pub trait FloorSqrtAssign {
// Required method
fn floor_sqrt_assign(&mut self);
}
Expand description
Replaces a number with the floor of its square root.
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.