pub trait SquareRoot {
// Required methods
fn sqrt(&self) -> Self;
fn sqrt_vartime(&self) -> Self;
}
Expand description
Support for calucaling square roots.
Required Methods§
Sourcefn sqrt_vartime(&self) -> Self
fn sqrt_vartime(&self) -> Self
Computes floor(sqrt(self))
, variable time in 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.