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§
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.