Skip to main content

FastSqrt

Trait FastSqrt 

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

Fast square root algorithm for fixed-point numbers

Required Methods§

Source

fn fast_sqrt(self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

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

Source§

fn fast_sqrt(self) -> Self

Source§

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

Source§

fn fast_sqrt(self) -> Self

Source§

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

Source§

fn fast_sqrt(self) -> Self

Source§

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

Source§

fn fast_sqrt(self) -> Self

Source§

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

Source§

fn fast_sqrt(self) -> Self

Source§

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

Source§

fn fast_sqrt(self) -> Self

Source§

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

Source§

fn fast_sqrt(self) -> Self

Source§

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

Source§

fn fast_sqrt(self) -> Self

Source§

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

Source§

fn fast_sqrt(self) -> Self

Source§

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

Source§

fn fast_sqrt(self) -> Self

Implementors§