Trait CeilingSqrtAssign

Source
pub trait CeilingSqrtAssign {
    // Required method
    fn ceiling_sqrt_assign(&mut self);
}
Expand description

Replaces a number with the ceiling of its square root.

Required Methods§

Implementations on Foreign Types§

Source§

impl CeilingSqrtAssign for i8

Source§

fn ceiling_sqrt_assign(&mut self)

Replaces an integer with the ceiling of its square root.

$x \gets \lceil\sqrt{x}\rceil$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if self is negative.

§Examples

See here.

Source§

impl CeilingSqrtAssign for i16

Source§

fn ceiling_sqrt_assign(&mut self)

Replaces an integer with the ceiling of its square root.

$x \gets \lceil\sqrt{x}\rceil$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if self is negative.

§Examples

See here.

Source§

impl CeilingSqrtAssign for i32

Source§

fn ceiling_sqrt_assign(&mut self)

Replaces an integer with the ceiling of its square root.

$x \gets \lceil\sqrt{x}\rceil$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if self is negative.

§Examples

See here.

Source§

impl CeilingSqrtAssign for i64

Source§

fn ceiling_sqrt_assign(&mut self)

Replaces an integer with the ceiling of its square root.

$x \gets \lceil\sqrt{x}\rceil$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if self is negative.

§Examples

See here.

Source§

impl CeilingSqrtAssign for i128

Source§

fn ceiling_sqrt_assign(&mut self)

Replaces an integer with the ceiling of its square root.

$x \gets \lceil\sqrt{x}\rceil$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if self is negative.

§Examples

See here.

Source§

impl CeilingSqrtAssign for isize

Source§

fn ceiling_sqrt_assign(&mut self)

Replaces an integer with the ceiling of its square root.

$x \gets \lceil\sqrt{x}\rceil$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if self is negative.

§Examples

See here.

Source§

impl CeilingSqrtAssign for u8

Source§

fn ceiling_sqrt_assign(&mut self)

Replaces an integer with the ceiling of its square root.

$x \gets \lceil\sqrt{x}\rceil$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if self is negative.

§Examples

See here.

Source§

impl CeilingSqrtAssign for u16

Source§

fn ceiling_sqrt_assign(&mut self)

Replaces an integer with the ceiling of its square root.

$x \gets \lceil\sqrt{x}\rceil$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if self is negative.

§Examples

See here.

Source§

impl CeilingSqrtAssign for u32

Source§

fn ceiling_sqrt_assign(&mut self)

Replaces an integer with the ceiling of its square root.

$x \gets \lceil\sqrt{x}\rceil$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if self is negative.

§Examples

See here.

Source§

impl CeilingSqrtAssign for u64

Source§

fn ceiling_sqrt_assign(&mut self)

Replaces an integer with the ceiling of its square root.

$x \gets \lceil\sqrt{x}\rceil$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if self is negative.

§Examples

See here.

Source§

impl CeilingSqrtAssign for u128

Source§

fn ceiling_sqrt_assign(&mut self)

Replaces an integer with the ceiling of its square root.

$x \gets \lceil\sqrt{x}\rceil$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if self is negative.

§Examples

See here.

Source§

impl CeilingSqrtAssign for usize

Source§

fn ceiling_sqrt_assign(&mut self)

Replaces an integer with the ceiling of its square root.

$x \gets \lceil\sqrt{x}\rceil$.

§Worst-case complexity

Constant time and additional memory.

§Panics

Panics if self is negative.

§Examples

See here.

Implementors§