Trait Sqrt

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

A trait created to represent types that expose a square root method. Relies explicitly on sqrt

Required Methods§

Source

fn square_root(&self) -> 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

Source§

fn square_root(&self) -> Self

Source§

impl Sqrt for f64

Source§

fn square_root(&self) -> Self

Implementors§