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§