Struct fast_floats::Fast [] [src]

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]

[src]

Get the inner value

Trait Implementations

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

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

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

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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

[src]

Returns the "default value" for a type. Read more

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

[src]

Performs the conversion.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Add for Fast<f64>
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Add for Fast<f32>
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

The resulting type after applying the - operator.

[src]

Performs the - operation.

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

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Sub for Fast<f64>
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Sub for Fast<f32>
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

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

The resulting type after applying the * operator.

[src]

Performs the * operation.

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

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Mul for Fast<f64>
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Mul for Fast<f32>
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

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

The resulting type after applying the / operator.

[src]

Performs the / operation.

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

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Div for Fast<f64>
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Div for Fast<f32>
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

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

The resulting type after applying the % operator.

[src]

Performs the % operation.

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

The resulting type after applying the % operator.

[src]

Performs the % operation.

impl Rem for Fast<f64>
[src]

The resulting type after applying the % operator.

[src]

Performs the % operation.

impl Rem for Fast<f32>
[src]

The resulting type after applying the % operator.

[src]

Performs the % operation.

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

[src]

Performs the += operation.

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

[src]

Performs the -= operation.

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

[src]

Performs the *= operation.

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

[src]

Performs the /= operation.

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

[src]

Performs the %= operation.

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

[src]

Formats the value using the given formatter.

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

[src]

Formats the value using the given formatter. Read more

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

[src]

Formats the value using the given formatter.

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

[src]

Formats the value using the given formatter.