pub struct Deg<T>(pub T);
Tuple Fields§
§0: T
Implementations§
Trait Implementations§
Source§impl AbsDiffEq for Deg<f32>
impl AbsDiffEq for Deg<f32>
Source§fn default_epsilon() -> <Deg<f32> as AbsDiffEq>::Epsilon
fn default_epsilon() -> <Deg<f32> as AbsDiffEq>::Epsilon
The default tolerance to use when testing values that are close together. Read more
Source§fn abs_diff_eq(
&self,
other: &Deg<f32>,
epsilon: <Deg<f32> as AbsDiffEq>::Epsilon,
) -> bool
fn abs_diff_eq( &self, other: &Deg<f32>, epsilon: <Deg<f32> as AbsDiffEq>::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 AbsDiffEq for Deg<f64>
impl AbsDiffEq for Deg<f64>
Source§fn default_epsilon() -> <Deg<f64> as AbsDiffEq>::Epsilon
fn default_epsilon() -> <Deg<f64> as AbsDiffEq>::Epsilon
The default tolerance to use when testing values that are close together. Read more
Source§fn abs_diff_eq(
&self,
other: &Deg<f64>,
epsilon: <Deg<f64> as AbsDiffEq>::Epsilon,
) -> bool
fn abs_diff_eq( &self, other: &Deg<f64>, epsilon: <Deg<f64> as AbsDiffEq>::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 DivAssign<f32> for Deg<f32>
impl DivAssign<f32> for Deg<f32>
Source§fn div_assign(&mut self, other: f32)
fn div_assign(&mut self, other: f32)
Performs the
/=
operation. Read moreSource§impl DivAssign<f64> for Deg<f64>
impl DivAssign<f64> for Deg<f64>
Source§fn div_assign(&mut self, other: f64)
fn div_assign(&mut self, other: f64)
Performs the
/=
operation. Read moreSource§impl MulAssign<f32> for Deg<f32>
impl MulAssign<f32> for Deg<f32>
Source§fn mul_assign(&mut self, other: f32)
fn mul_assign(&mut self, other: f32)
Performs the
*=
operation. Read moreSource§impl MulAssign<f64> for Deg<f64>
impl MulAssign<f64> for Deg<f64>
Source§fn mul_assign(&mut self, other: f64)
fn mul_assign(&mut self, other: f64)
Performs the
*=
operation. Read moreSource§impl<T> PartialOrd for Deg<T>where
T: PartialOrd,
impl<T> PartialOrd for Deg<T>where
T: PartialOrd,
Source§impl RelativeEq for Deg<f32>
impl RelativeEq for Deg<f32>
Source§fn default_max_relative() -> <Deg<f32> as AbsDiffEq>::Epsilon
fn default_max_relative() -> <Deg<f32> as AbsDiffEq>::Epsilon
The default relative tolerance for testing values that are far-apart. Read more
Source§fn relative_eq(
&self,
other: &Deg<f32>,
epsilon: <Deg<f32> as AbsDiffEq>::Epsilon,
max_relative: <Deg<f32> as AbsDiffEq>::Epsilon,
) -> bool
fn relative_eq( &self, other: &Deg<f32>, epsilon: <Deg<f32> as AbsDiffEq>::Epsilon, max_relative: <Deg<f32> as AbsDiffEq>::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 RelativeEq for Deg<f64>
impl RelativeEq for Deg<f64>
Source§fn default_max_relative() -> <Deg<f64> as AbsDiffEq>::Epsilon
fn default_max_relative() -> <Deg<f64> as AbsDiffEq>::Epsilon
The default relative tolerance for testing values that are far-apart. Read more
Source§fn relative_eq(
&self,
other: &Deg<f64>,
epsilon: <Deg<f64> as AbsDiffEq>::Epsilon,
max_relative: <Deg<f64> as AbsDiffEq>::Epsilon,
) -> bool
fn relative_eq( &self, other: &Deg<f64>, epsilon: <Deg<f64> as AbsDiffEq>::Epsilon, max_relative: <Deg<f64> as AbsDiffEq>::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 UlpsEq for Deg<f32>
impl UlpsEq for Deg<f32>
Source§fn default_max_ulps() -> u32
fn default_max_ulps() -> u32
The default ULPs to tolerate when testing values that are far-apart. Read more
Source§impl UlpsEq for Deg<f64>
impl UlpsEq for Deg<f64>
Source§fn default_max_ulps() -> u32
fn default_max_ulps() -> u32
The default ULPs to tolerate when testing values that are far-apart. Read more
impl<T> Copy for Deg<T>where
T: Copy,
impl<T> Eq for Deg<T>where
T: Eq,
impl<T> StructuralPartialEq for Deg<T>
Auto Trait Implementations§
impl<T> Freeze for Deg<T>where
T: Freeze,
impl<T> RefUnwindSafe for Deg<T>where
T: RefUnwindSafe,
impl<T> Send for Deg<T>where
T: Send,
impl<T> Sync for Deg<T>where
T: Sync,
impl<T> Unpin for Deg<T>where
T: Unpin,
impl<T> UnwindSafe for Deg<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.