pub trait FromSqrt<T>: Sized {
// Required method
fn from_sqrt(t: T) -> Result<Self, FromSqrtError<T>>;
}Expand description
Create a number instance from the square root of another number.
In case there are multiple solution for square root, only canonical result will be returned
Required Methods§
fn from_sqrt(t: T) -> Result<Self, FromSqrtError<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.