pub trait SquareRoot {
type Output;
// Required method
fn square_root(&self) -> Result<Self::Output, Error>;
}Expand description
Unary operator for retrieving the square root of the value.
Required Associated Types§
Required Methods§
fn square_root(&self) -> Result<Self::Output, Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".