pub trait FloorSquareRoot: CheckedSquareRoot {
// Required methods
fn floor_sqrt(&self) -> Self::Output;
fn floor_sqrt_vartime(&self) -> Self::Output;
}Expand description
Support for calculating floored square roots.
Required Methods§
Sourcefn floor_sqrt(&self) -> Self::Output
fn floor_sqrt(&self) -> Self::Output
Computes floor(sqrt(self)).
Sourcefn floor_sqrt_vartime(&self) -> Self::Output
fn floor_sqrt_vartime(&self) -> Self::Output
Computes floor(sqrt(self)).
Variable time with respect to self.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".