Float

Trait Float 

Source
pub trait Float<T>: Number<T> {
    // Required method
    fn sqrt(self) -> T;
}
Expand description

Trait that specifies that the root of a number can be calculated

Required Methods§

Source

fn sqrt(self) -> T

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 Float<f32> for f32

Source§

fn sqrt(self) -> f32

Source§

impl Float<f64> for f64

Source§

fn sqrt(self) -> f64

Implementors§