pub struct Float32(pub f32);
Tuple Fields§
§0: f32
Implementations§
Trait Implementations§
Source§impl AbsDiffEq for Float32
impl AbsDiffEq for Float32
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 Float32
impl AddAssign for Float32
Source§fn add_assign(&mut self, rhs: Float32)
fn add_assign(&mut self, rhs: Float32)
Performs the
+=
operation. Read moreSource§impl DivAssign for Float32
impl DivAssign for Float32
Source§fn div_assign(&mut self, rhs: Float32)
fn div_assign(&mut self, rhs: Float32)
Performs the
/=
operation. Read moreSource§impl MulAssign for Float32
impl MulAssign for Float32
Source§fn mul_assign(&mut self, rhs: Float32)
fn mul_assign(&mut self, rhs: Float32)
Performs the
*=
operation. Read moreSource§impl PartialOrd for Float32
impl PartialOrd for Float32
Source§impl RelativeEq for Float32
impl RelativeEq for Float32
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 Float32
impl RemAssign for Float32
Source§fn rem_assign(&mut self, rhs: Float32)
fn rem_assign(&mut self, rhs: Float32)
Performs the
%=
operation. Read moreSource§impl SubAssign for Float32
impl SubAssign for Float32
Source§fn sub_assign(&mut self, rhs: Float32)
fn sub_assign(&mut self, rhs: Float32)
Performs the
-=
operation. Read moreSource§impl UlpsEq for Float32
impl UlpsEq for Float32
impl Copy for Float32
impl StructuralPartialEq for Float32
Auto Trait Implementations§
impl Freeze for Float32
impl RefUnwindSafe for Float32
impl Send for Float32
impl Sync for Float32
impl Unpin for Float32
impl UnwindSafe for Float32
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