Skip to main content
This is unreleased documentation for the main (development) branch of crypto-glue.

FloorSquareRoot

Trait FloorSquareRoot 

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

Source

fn floor_sqrt(&self) -> Self::Output

Computes floor(sqrt(self)).

Source

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

Implementors§