Sqrt2

Trait Sqrt2 

Source
pub trait Sqrt2 {
    const SQRT_2: Self;
}
Expand description

Provides $\sqrt{2}$.

Required Associated Constants§

Source

const SQRT_2: 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 Sqrt2 for f32

$\sqrt{2}$.

Source§

const SQRT_2: f32 = 1.41421354f32

Source§

impl Sqrt2 for f64

$\sqrt{2}$.

Source§

const SQRT_2: f64 = 1.4142135623730951f64

Implementors§