pub struct Float64(pub f64);
Tuple Fields§
§0: f64
Implementations§
Trait Implementations§
Source§impl AbsDiffEq for Float64
impl AbsDiffEq for Float64
Source§fn default_epsilon() -> Self::Epsilon
fn default_epsilon() -> Self::Epsilon
The default tolerance to use when testing values that are close together. Read more
Source§fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
A test for equality that uses the absolute difference to compute the approximate
equality of two numbers.
Source§fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
The inverse of
AbsDiffEq::abs_diff_eq
.Source§impl AddAssign for Float64
impl AddAssign for Float64
Source§fn add_assign(&mut self, rhs: Float64)
fn add_assign(&mut self, rhs: Float64)
Performs the
+=
operation. Read moreSource§impl DivAssign for Float64
impl DivAssign for Float64
Source§fn div_assign(&mut self, rhs: Float64)
fn div_assign(&mut self, rhs: Float64)
Performs the
/=
operation. Read moreSource§impl MulAssign for Float64
impl MulAssign for Float64
Source§fn mul_assign(&mut self, rhs: Float64)
fn mul_assign(&mut self, rhs: Float64)
Performs the
*=
operation. Read moreSource§impl PartialOrd for Float64
impl PartialOrd for Float64
Source§impl RelativeEq for Float64
impl RelativeEq for Float64
Source§fn default_max_relative() -> Self::Epsilon
fn default_max_relative() -> Self::Epsilon
The default relative tolerance for testing values that are far-apart. Read more
Source§fn relative_eq(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon,
) -> bool
fn relative_eq( &self, other: &Self, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool
A test for equality that uses a relative comparison if the values are far apart.
Source§fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon,
) -> bool
fn relative_ne( &self, other: &Rhs, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool
The inverse of
RelativeEq::relative_eq
.Source§impl RemAssign for Float64
impl RemAssign for Float64
Source§fn rem_assign(&mut self, rhs: Float64)
fn rem_assign(&mut self, rhs: Float64)
Performs the
%=
operation. Read moreSource§impl SubAssign for Float64
impl SubAssign for Float64
Source§fn sub_assign(&mut self, rhs: Float64)
fn sub_assign(&mut self, rhs: Float64)
Performs the
-=
operation. Read moreSource§impl UlpsEq for Float64
impl UlpsEq for Float64
impl Copy for Float64
impl StructuralPartialEq for Float64
Auto Trait Implementations§
impl Freeze for Float64
impl RefUnwindSafe for Float64
impl Send for Float64
impl Sync for Float64
impl Unpin for Float64
impl UnwindSafe for Float64
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more