pub trait SquareRootRem {
    type Output;

    // Required method
    fn sqrt_rem(&self) -> (Self::Output, Self);
}
Expand description

Computer the floored square root of the number and return the remainder at the same time.

Required Associated Types§

Required Methods§

source

fn sqrt_rem(&self) -> (Self::Output, Self)

Implementations on Foreign Types§

source§

impl SquareRootRem for u64

§

type Output = u32

source§

fn sqrt_rem(&self) -> (u32, u64)

source§

impl SquareRootRem for u8

§

type Output = u8

source§

fn sqrt_rem(&self) -> (u8, u8)

source§

impl SquareRootRem for u16

§

type Output = u8

source§

fn sqrt_rem(&self) -> (u8, u16)

source§

impl SquareRootRem for u128

§

type Output = u64

source§

fn sqrt_rem(&self) -> (u64, u128)

source§

impl SquareRootRem for u32

§

type Output = u16

source§

fn sqrt_rem(&self) -> (u16, u32)

Implementors§