Trait FloorRootAssign

Source
pub trait FloorRootAssign<POW> {
    // Required method
    fn floor_root_assign(&mut self, pow: POW);
}
Expand description

Replaces a number with the floor of its $n$th root.

Required Methods§

Source

fn floor_root_assign(&mut self, pow: POW)

Implementations on Foreign Types§

Source§

impl FloorRootAssign<u64> for i8

Source§

fn floor_root_assign(&mut self, exp: u64)

Replaces an integer with the floor of its $n$th root.

$x \gets \lfloor\sqrt[n]{x}\rfloor$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if exp is zero, or if self is negative and exp is even.

§Examples

See here.

Source§

impl FloorRootAssign<u64> for i16

Source§

fn floor_root_assign(&mut self, exp: u64)

Replaces an integer with the floor of its $n$th root.

$x \gets \lfloor\sqrt[n]{x}\rfloor$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if exp is zero, or if self is negative and exp is even.

§Examples

See here.

Source§

impl FloorRootAssign<u64> for i32

Source§

fn floor_root_assign(&mut self, exp: u64)

Replaces an integer with the floor of its $n$th root.

$x \gets \lfloor\sqrt[n]{x}\rfloor$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if exp is zero, or if self is negative and exp is even.

§Examples

See here.

Source§

impl FloorRootAssign<u64> for i64

Source§

fn floor_root_assign(&mut self, exp: u64)

Replaces an integer with the floor of its $n$th root.

$x \gets \lfloor\sqrt[n]{x}\rfloor$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if exp is zero, or if self is negative and exp is even.

§Examples

See here.

Source§

impl FloorRootAssign<u64> for i128

Source§

fn floor_root_assign(&mut self, exp: u64)

Replaces an integer with the floor of its $n$th root.

$x \gets \lfloor\sqrt[n]{x}\rfloor$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if exp is zero, or if self is negative and exp is even.

§Examples

See here.

Source§

impl FloorRootAssign<u64> for isize

Source§

fn floor_root_assign(&mut self, exp: u64)

Replaces an integer with the floor of its $n$th root.

$x \gets \lfloor\sqrt[n]{x}\rfloor$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if exp is zero, or if self is negative and exp is even.

§Examples

See here.

Source§

impl FloorRootAssign<u64> for u8

Source§

fn floor_root_assign(&mut self, exp: u64)

Replaces an integer with the floor of its $n$th root.

$x \gets \lfloor\sqrt[n]{x}\rfloor$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if exp is zero, or if self is negative and exp is even.

§Examples

See here.

Source§

impl FloorRootAssign<u64> for u16

Source§

fn floor_root_assign(&mut self, exp: u64)

Replaces an integer with the floor of its $n$th root.

$x \gets \lfloor\sqrt[n]{x}\rfloor$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if exp is zero, or if self is negative and exp is even.

§Examples

See here.

Source§

impl FloorRootAssign<u64> for u32

Source§

fn floor_root_assign(&mut self, exp: u64)

Replaces an integer with the floor of its $n$th root.

$x \gets \lfloor\sqrt[n]{x}\rfloor$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if exp is zero, or if self is negative and exp is even.

§Examples

See here.

Source§

impl FloorRootAssign<u64> for u64

Source§

fn floor_root_assign(&mut self, exp: u64)

Replaces an integer with the floor of its $n$th root.

$x \gets \lfloor\sqrt[n]{x}\rfloor$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if exp is zero, or if self is negative and exp is even.

§Examples

See here.

Source§

impl FloorRootAssign<u64> for u128

Source§

fn floor_root_assign(&mut self, exp: u64)

Replaces an integer with the floor of its $n$th root.

$x \gets \lfloor\sqrt[n]{x}\rfloor$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if exp is zero, or if self is negative and exp is even.

§Examples

See here.

Source§

impl FloorRootAssign<u64> for usize

Source§

fn floor_root_assign(&mut self, exp: u64)

Replaces an integer with the floor of its $n$th root.

$x \gets \lfloor\sqrt[n]{x}\rfloor$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if exp is zero, or if self is negative and exp is even.

§Examples

See here.

Implementors§