Trait SqrtAssign

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

Replaces a number with its square root.

Required Methods§

Source

fn sqrt_assign(&mut self)

Implementations on Foreign Types§

Source§

impl SqrtAssign for f32

Source§

fn sqrt_assign(&mut self)

Replaces a number with its square root.

$x \gets \sqrt x$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Source§

impl SqrtAssign for f64

Source§

fn sqrt_assign(&mut self)

Replaces a number with its square root.

$x \gets \sqrt x$.

§Worst-case complexity

Constant time and additional memory.

§Examples

See here.

Implementors§