Trait Sqrt

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

Defines the square-root value for a type.

Required Methods§

Source

fn sqrt(self) -> Self

Returns the square-root value of this type.

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

Source§

fn sqrt(self) -> Self

Source§

impl Sqrt for f64

Source§

fn sqrt(self) -> Self

Implementors§