[][src]Struct fast_floats::Fast

#[repr(transparent)]
pub struct Fast<F>(pub F);

“fast-math” wrapper for f32 and f64.

The Fast type enforces no invariant and can hold any f32, f64 values. See crate docs for more details.

Methods

impl<F> Fast<F>[src]

pub fn get(self) -> F[src]

Get the inner value

Trait Implementations

impl<F> From<F> for Fast<F>[src]

impl<F: PartialEq> PartialEq<Fast<F>> for Fast<F>[src]

impl<F: PartialOrd> PartialOrd<Fast<F>> for Fast<F>[src]

impl Add<f64> for Fast<f64>[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<f32> for Fast<f32>[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<Fast<f64>> for f64[src]

type Output = Fast<f64>

The resulting type after applying the + operator.

impl Add<Fast<f32>> for f32[src]

type Output = Fast<f32>

The resulting type after applying the + operator.

impl Add<Fast<f64>> for Fast<f64>[src]

type Output = Self

The resulting type after applying the + operator.

impl Add<Fast<f32>> for Fast<f32>[src]

type Output = Self

The resulting type after applying the + operator.

impl Sub<f64> for Fast<f64>[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<f32> for Fast<f32>[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<Fast<f64>> for f64[src]

type Output = Fast<f64>

The resulting type after applying the - operator.

impl Sub<Fast<f32>> for f32[src]

type Output = Fast<f32>

The resulting type after applying the - operator.

impl Sub<Fast<f64>> for Fast<f64>[src]

type Output = Self

The resulting type after applying the - operator.

impl Sub<Fast<f32>> for Fast<f32>[src]

type Output = Self

The resulting type after applying the - operator.

impl Mul<f64> for Fast<f64>[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<f32> for Fast<f32>[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<Fast<f64>> for f64[src]

type Output = Fast<f64>

The resulting type after applying the * operator.

impl Mul<Fast<f32>> for f32[src]

type Output = Fast<f32>

The resulting type after applying the * operator.

impl Mul<Fast<f64>> for Fast<f64>[src]

type Output = Self

The resulting type after applying the * operator.

impl Mul<Fast<f32>> for Fast<f32>[src]

type Output = Self

The resulting type after applying the * operator.

impl Div<f64> for Fast<f64>[src]

type Output = Self

The resulting type after applying the / operator.

impl Div<f32> for Fast<f32>[src]

type Output = Self

The resulting type after applying the / operator.

impl Div<Fast<f64>> for f64[src]

type Output = Fast<f64>

The resulting type after applying the / operator.

impl Div<Fast<f32>> for f32[src]

type Output = Fast<f32>

The resulting type after applying the / operator.

impl Div<Fast<f64>> for Fast<f64>[src]

type Output = Self

The resulting type after applying the / operator.

impl Div<Fast<f32>> for Fast<f32>[src]

type Output = Self

The resulting type after applying the / operator.

impl Rem<f64> for Fast<f64>[src]

type Output = Self

The resulting type after applying the % operator.

impl Rem<f32> for Fast<f32>[src]

type Output = Self

The resulting type after applying the % operator.

impl Rem<Fast<f64>> for f64[src]

type Output = Fast<f64>

The resulting type after applying the % operator.

impl Rem<Fast<f32>> for f32[src]

type Output = Fast<f32>

The resulting type after applying the % operator.

impl Rem<Fast<f64>> for Fast<f64>[src]

type Output = Self

The resulting type after applying the % operator.

impl Rem<Fast<f32>> for Fast<f32>[src]

type Output = Self

The resulting type after applying the % operator.

impl<F, Rhs> AddAssign<Rhs> for Fast<F> where
    Self: Add<Rhs, Output = Self> + Copy
[src]

impl<F, Rhs> SubAssign<Rhs> for Fast<F> where
    Self: Add<Rhs, Output = Self> + Copy
[src]

impl<F, Rhs> MulAssign<Rhs> for Fast<F> where
    Self: Add<Rhs, Output = Self> + Copy
[src]

impl<F, Rhs> DivAssign<Rhs> for Fast<F> where
    Self: Add<Rhs, Output = Self> + Copy
[src]

impl<F, Rhs> RemAssign<Rhs> for Fast<F> where
    Self: Add<Rhs, Output = Self> + Copy
[src]

impl<F: Debug> Debug for Fast<F>[src]

impl<F: UpperExp> UpperExp for Fast<F>[src]

impl<F: LowerExp> LowerExp for Fast<F>[src]

impl<F: Display> Display for Fast<F>[src]

impl Into<f32> for Fast<f32>[src]

impl Into<f64> for Fast<f64>[src]

impl<F: Copy> Copy for Fast<F>[src]

impl<F: Clone> Clone for Fast<F>[src]

impl<F: Default> Default for Fast<F>[src]

impl Zero for Fast<f64>[src]

impl Zero for Fast<f32>[src]

Auto Trait Implementations

impl<F> Unpin for Fast<F> where
    F: Unpin

impl<F> Send for Fast<F> where
    F: Send

impl<F> Sync for Fast<F> where
    F: Sync

impl<F> UnwindSafe for Fast<F> where
    F: UnwindSafe

impl<F> RefUnwindSafe for Fast<F> where
    F: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
    T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>, 
[src]

impl<T, Rhs> NumAssignOps<Rhs> for T where
    T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]