SquareRoot in typenum::type_operators - Rust
Description: A type operator for taking the integer square root of `Self`.
Keywords: rust, rustlang, rust-lang, SquareRoot

# Trait typenum::type_operators::SquareRoot

source ·

    pub trait SquareRoot {
        type Output;
    }

Expand description

A type operator for taking the integer square root of `Self`.

The integer square root of `n` is the largest integer `m` such that `n >= m*m`. This definition is equivalent to truncating the real-valued square root: `floor(real_sqrt(n))`.

## Required Associated Types§

source

#### type Output

The result of the integer square root.

## Implementors§

source§

### impl<N> SquareRoot for Nwhere
N: PrivateSquareRoot,

§

#### type Output = <N as PrivateSquareRoot>::Output