[−][src]Struct fast_floats::Fast
“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: 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 Sub<f64> for Fast<f64>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: f64) -> Self::Output
[src]
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]
impl Sub<Fast<f64>> for f64
[src]
type Output = Fast<f64>
The resulting type after applying the -
operator.
fn sub(self, rhs: Fast<f64>) -> Self::Output
[src]
impl Sub<Fast<f32>> for f32
[src]
type Output = Fast<f32>
The resulting type after applying the -
operator.
fn sub(self, rhs: Fast<f32>) -> Self::Output
[src]
impl Sub<Fast<f64>> for Fast<f64>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self::Output
[src]
impl Sub<Fast<f32>> for Fast<f32>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self::Output
[src]
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]
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]
impl Rem<Fast<f64>> for f64
[src]
type Output = Fast<f64>
The resulting type after applying the %
operator.
fn rem(self, rhs: Fast<f64>) -> Self::Output
[src]
impl Rem<Fast<f32>> for f32
[src]
type Output = Fast<f32>
The resulting type after applying the %
operator.
fn rem(self, rhs: Fast<f32>) -> Self::Output
[src]
impl Rem<Fast<f64>> for Fast<f64>
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: Self) -> Self::Output
[src]
impl Rem<Fast<f32>> for Fast<f32>
[src]
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: Self) -> Self::Output
[src]
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]
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]
impl Div<Fast<f64>> for f64
[src]
type Output = Fast<f64>
The resulting type after applying the /
operator.
fn div(self, rhs: Fast<f64>) -> Self::Output
[src]
impl Div<Fast<f32>> for f32
[src]
type Output = Fast<f32>
The resulting type after applying the /
operator.
fn div(self, rhs: Fast<f32>) -> Self::Output
[src]
impl Div<Fast<f64>> for Fast<f64>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self::Output
[src]
impl Div<Fast<f32>> for Fast<f32>
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self::Output
[src]
impl<F: PartialEq> PartialEq<Fast<F>> for Fast<F>
[src]
impl<F: PartialOrd> PartialOrd<Fast<F>> for Fast<F>
[src]
fn partial_cmp(&self, other: &Fast<F>) -> Option<Ordering>
[src]
fn lt(&self, other: &Fast<F>) -> bool
[src]
fn le(&self, other: &Fast<F>) -> bool
[src]
fn gt(&self, other: &Fast<F>) -> bool
[src]
fn ge(&self, other: &Fast<F>) -> bool
[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]
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]
impl Add<Fast<f64>> for f64
[src]
type Output = Fast<f64>
The resulting type after applying the +
operator.
fn add(self, rhs: Fast<f64>) -> Self::Output
[src]
impl Add<Fast<f32>> for f32
[src]
type Output = Fast<f32>
The resulting type after applying the +
operator.
fn add(self, rhs: Fast<f32>) -> Self::Output
[src]
impl Add<Fast<f64>> for Fast<f64>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output
[src]
impl Add<Fast<f32>> for Fast<f32>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output
[src]
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]
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]
impl Mul<Fast<f64>> for f64
[src]
type Output = Fast<f64>
The resulting type after applying the *
operator.
fn mul(self, rhs: Fast<f64>) -> Self::Output
[src]
impl Mul<Fast<f32>> for f32
[src]
type Output = Fast<f32>
The resulting type after applying the *
operator.
fn mul(self, rhs: Fast<f32>) -> Self::Output
[src]
impl Mul<Fast<f64>> for Fast<f64>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self::Output
[src]
impl Mul<Fast<f32>> for Fast<f32>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self::Output
[src]
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]
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]
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]
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]
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]
impl<F: Copy> Copy for Fast<F>
[src]
impl Into<f32> for Fast<f32>
[src]
impl Into<f64> for Fast<f64>
[src]
impl<F> From<F> 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,
F: Unpin,
impl<F> Send for Fast<F> where
F: Send,
F: Send,
impl<F> Sync for Fast<F> where
F: Sync,
F: Sync,
impl<F> RefUnwindSafe for Fast<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> UnwindSafe for Fast<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
impl<T, Rhs> NumAssignOps<Rhs> for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
[src]
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,