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]
Trait Implementations
impl<F: Copy> Copy for Fast<F>
[src]
impl<F: Clone> Clone for Fast<F>
[src]
fn clone(&self) -> Fast<F>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<F: PartialEq> PartialEq for Fast<F>
[src]
fn eq(&self, __arg_0: &Fast<F>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Fast<F>) -> bool
[src]
This method tests for !=
.
impl<F: PartialOrd> PartialOrd for Fast<F>
[src]
fn partial_cmp(&self, __arg_0: &Fast<F>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Fast<F>) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Fast<F>) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Fast<F>) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Fast<F>) -> bool
[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]
impl<F> From<F> for Fast<F>
[src]
impl Add<f64> for Fast<f64>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: f64) -> Self::Output
[src]
Performs the +
operation.
impl Add<f32> for Fast<f32>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: f32) -> Self::Output
[src]
Performs the +
operation.
impl Add for Fast<f64>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output
[src]
Performs the +
operation.
impl Add for Fast<f32>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output
[src]
Performs the +
operation.
impl Sub<f64> for Fast<f64>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: f64) -> Self::Output
[src]
Performs the -
operation.
impl Sub<f32> for Fast<f32>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: f32) -> Self::Output
[src]
Performs the -
operation.
impl Sub for Fast<f64>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self::Output
[src]
Performs the -
operation.
impl Sub for Fast<f32>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self::Output
[src]
Performs the -
operation.
impl Mul<f64> for Fast<f64>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: f64) -> Self::Output
[src]
Performs the *
operation.
impl Mul<f32> for Fast<f32>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: f32) -> Self::Output
[src]
Performs the *
operation.
impl Mul for Fast<f64>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self::Output
[src]
Performs the *
operation.
impl Mul for Fast<f32>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self::Output
[src]
Performs the *
operation.
impl Div<f64> for Fast<f64>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: f64) -> Self::Output
[src]
Performs the /
operation.
impl Div<f32> for Fast<f32>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: f32) -> Self::Output
[src]
Performs the /
operation.
impl Div for Fast<f64>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self::Output
[src]
Performs the /
operation.
impl Div for Fast<f32>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self::Output
[src]
Performs the /
operation.
impl Rem<f64> for Fast<f64>
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: f64) -> Self::Output
[src]
Performs the %
operation.
impl Rem<f32> for Fast<f32>
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: f32) -> Self::Output
[src]
Performs the %
operation.
impl Rem for Fast<f64>
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: Self) -> Self::Output
[src]
Performs the %
operation.
impl Rem for Fast<f32>
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: Self) -> Self::Output
[src]
Performs the %
operation.
impl<F, Rhs> AddAssign<Rhs> for Fast<F> where
Self: Add<Rhs, Output = Self> + Copy,
[src]
Self: Add<Rhs, Output = Self> + Copy,
fn add_assign(&mut self, rhs: Rhs)
[src]
Performs the +=
operation.
impl<F, Rhs> SubAssign<Rhs> for Fast<F> where
Self: Add<Rhs, Output = Self> + Copy,
[src]
Self: Add<Rhs, Output = Self> + Copy,
fn sub_assign(&mut self, rhs: Rhs)
[src]
Performs the -=
operation.
impl<F, Rhs> MulAssign<Rhs> for Fast<F> where
Self: Add<Rhs, Output = Self> + Copy,
[src]
Self: Add<Rhs, Output = Self> + Copy,
fn mul_assign(&mut self, rhs: Rhs)
[src]
Performs the *=
operation.
impl<F, Rhs> DivAssign<Rhs> for Fast<F> where
Self: Add<Rhs, Output = Self> + Copy,
[src]
Self: Add<Rhs, Output = Self> + Copy,
fn div_assign(&mut self, rhs: Rhs)
[src]
Performs the /=
operation.
impl<F, Rhs> RemAssign<Rhs> for Fast<F> where
Self: Add<Rhs, Output = Self> + Copy,
[src]
Self: Add<Rhs, Output = Self> + Copy,
fn rem_assign(&mut self, rhs: Rhs)
[src]
Performs the %=
operation.
impl<F: Debug> Debug for Fast<F>
[src]
impl<F: Display> Display for Fast<F>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more