Trait fixed_math::traits::Sqrt

source ·
pub trait Sqrt {
    // Required method
    fn sqrt(self) -> Self;
}
Expand description

Take square root of a number.

It is not implemented for fixed number types with 0 integer bits. Implementation exists for f32 and f64 too.

Required Methods§

source

fn sqrt(self) -> Self

Calculate the square root of self.

Implementations on Foreign Types§

source§

impl Sqrt for f64

source§

fn sqrt(self) -> Self

source§

impl<N> Sqrt for FixedU16<N>where N: LeEqU16 + IsLess<U15, Output = True>,

source§

fn sqrt(self) -> Self

source§

impl Sqrt for f32

source§

fn sqrt(self) -> Self

source§

impl<N> Sqrt for FixedI128<N>where N: LeEqU128 + IsLess<U127, Output = True>,

source§

fn sqrt(self) -> Self

source§

impl<N> Sqrt for FixedU64<N>where N: LeEqU64 + IsLess<U63, Output = True>,

source§

fn sqrt(self) -> Self

source§

impl<N> Sqrt for FixedU128<N>where N: LeEqU128 + IsLess<U127, Output = True>,

source§

fn sqrt(self) -> Self

source§

impl<N> Sqrt for FixedI16<N>where N: LeEqU16 + IsLess<U15, Output = True>,

source§

fn sqrt(self) -> Self

source§

impl<N> Sqrt for FixedI8<N>where N: LeEqU8 + IsLess<U7, Output = True>,

source§

fn sqrt(self) -> Self

source§

impl<N> Sqrt for FixedI64<N>where N: LeEqU64 + IsLess<U63, Output = True>,

source§

fn sqrt(self) -> Self

source§

impl<N> Sqrt for FixedU8<N>where N: LeEqU8 + IsLess<U7, Output = True>,

source§

fn sqrt(self) -> Self

source§

impl<N> Sqrt for FixedI32<N>where N: LeEqU32 + IsLess<U31, Output = True>,

source§

fn sqrt(self) -> Self

source§

impl<N> Sqrt for FixedU32<N>where N: LeEqU32 + IsLess<U31, Output = True>,

source§

fn sqrt(self) -> Self

Implementors§