Skip to main content

FixedSqrt

Trait FixedSqrt 

Source
pub trait FixedSqrt: Fixed {
    // Required method
    fn sqrt(self) -> Self;
}
Expand description

Square root algorithm for fixed-point numbers

Required Methods§

Source

fn sqrt(self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<U> FixedSqrt for FixedI8<U>
where U: LtU8,

Source§

fn sqrt(self) -> FixedI8<U>

Source§

impl<U> FixedSqrt for FixedI16<U>
where U: LtU16,

Source§

fn sqrt(self) -> FixedI16<U>

Source§

impl<U> FixedSqrt for FixedI32<U>
where U: LtU32,

Source§

fn sqrt(self) -> FixedI32<U>

Source§

impl<U> FixedSqrt for FixedI64<U>
where U: LtU64,

Source§

fn sqrt(self) -> FixedI64<U>

Source§

impl<U> FixedSqrt for FixedI128<U>
where U: LtU128,

Source§

fn sqrt(self) -> FixedI128<U>

Source§

impl<U> FixedSqrt for FixedU8<U>
where U: LeEqU8,

Source§

fn sqrt(self) -> FixedU8<U>

Source§

impl<U> FixedSqrt for FixedU16<U>
where U: LeEqU16,

Source§

fn sqrt(self) -> FixedU16<U>

Source§

impl<U> FixedSqrt for FixedU32<U>
where U: LeEqU32,

Source§

fn sqrt(self) -> FixedU32<U>

Source§

impl<U> FixedSqrt for FixedU64<U>
where U: LeEqU64,

Source§

fn sqrt(self) -> FixedU64<U>

Source§

impl<U> FixedSqrt for FixedU128<U>
where U: LeEqU128 + IsEven,

Source§

fn sqrt(self) -> FixedU128<U>

Implementors§