Skip to main content

Sqrt

Trait Sqrt 

Source
pub trait Sqrt {
    // Required method
    fn sqrt(self) -> Self;
}
Expand description

Method for getting the square root of a number.

Required Methods§

Source

fn sqrt(self) -> Self

Returns the square root of self.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Sqrt for f32

Available on crate feature std, or non-crate feature libm only.
Source§

fn sqrt(self) -> f32

Source§

impl Sqrt for f64

Available on crate feature std, or non-crate feature libm only.
Source§

fn sqrt(self) -> f64

Implementors§