pub struct FahrenheitDiff(pub f64);
Expand description
Temperature difference in Fahrenheit units.
Tuple Fields§
§0: f64
Implementations§
Source§impl FahrenheitDiff
impl FahrenheitDiff
Sourcepub fn max(self, other: FahrenheitDiff) -> Self
pub fn max(self, other: FahrenheitDiff) -> Self
Find the maximum for two values
Sourcepub fn min(self, other: FahrenheitDiff) -> Self
pub fn min(self, other: FahrenheitDiff) -> Self
Find the minimum for two values
Trait Implementations§
Source§impl<T> Add<T> for FahrenheitDiff
impl<T> Add<T> for FahrenheitDiff
Source§impl<T> AddAssign<T> for FahrenheitDiff
impl<T> AddAssign<T> for FahrenheitDiff
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+=
operation. Read moreSource§impl Clone for FahrenheitDiff
impl Clone for FahrenheitDiff
Source§fn clone(&self) -> FahrenheitDiff
fn clone(&self) -> FahrenheitDiff
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FahrenheitDiff
impl Debug for FahrenheitDiff
Source§impl<T> Div<T> for FahrenheitDiff
impl<T> Div<T> for FahrenheitDiff
Source§impl Div<f64> for FahrenheitDiff
impl Div<f64> for FahrenheitDiff
Source§impl DivAssign<f64> for FahrenheitDiff
impl DivAssign<f64> for FahrenheitDiff
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moreSource§impl From<CelsiusDiff> for FahrenheitDiff
impl From<CelsiusDiff> for FahrenheitDiff
Source§fn from(v: CelsiusDiff) -> Self
fn from(v: CelsiusDiff) -> Self
Converts to this type from the input type.
Source§impl From<FahrenheitDiff> for CelsiusDiff
impl From<FahrenheitDiff> for CelsiusDiff
Source§fn from(v: FahrenheitDiff) -> Self
fn from(v: FahrenheitDiff) -> Self
Converts to this type from the input type.
Source§impl From<FahrenheitDiff> for KelvinDiff
impl From<FahrenheitDiff> for KelvinDiff
Source§fn from(v: FahrenheitDiff) -> Self
fn from(v: FahrenheitDiff) -> Self
Converts to this type from the input type.
Source§impl From<KelvinDiff> for FahrenheitDiff
impl From<KelvinDiff> for FahrenheitDiff
Source§fn from(v: KelvinDiff) -> Self
fn from(v: KelvinDiff) -> Self
Converts to this type from the input type.
Source§impl Mul<f64> for FahrenheitDiff
impl Mul<f64> for FahrenheitDiff
Source§impl MulAssign<f64> for FahrenheitDiff
impl MulAssign<f64> for FahrenheitDiff
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moreSource§impl Neg for FahrenheitDiff
impl Neg for FahrenheitDiff
Source§impl<T> PartialEq<T> for FahrenheitDiff
impl<T> PartialEq<T> for FahrenheitDiff
Source§impl<T> PartialOrd<T> for FahrenheitDiff
impl<T> PartialOrd<T> for FahrenheitDiff
Source§impl Quantity for FahrenheitDiff
impl Quantity for FahrenheitDiff
Source§fn unwrap(self) -> f64
fn unwrap(self) -> f64
Unwrap the value from the new type and check for validity, panic if contents are invalid.
Source§fn into_option(self) -> Option<f64>
fn into_option(self) -> Option<f64>
Convert into an option that is
None
if the content is invalid.Source§impl<T> Sub<T> for FahrenheitDiff
impl<T> Sub<T> for FahrenheitDiff
Source§impl<T> SubAssign<T> for FahrenheitDiff
impl<T> SubAssign<T> for FahrenheitDiff
Source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the
-=
operation. Read moreimpl Copy for FahrenheitDiff
impl TempDiff for FahrenheitDiff
Auto Trait Implementations§
impl Freeze for FahrenheitDiff
impl RefUnwindSafe for FahrenheitDiff
impl Send for FahrenheitDiff
impl Sync for FahrenheitDiff
impl Unpin for FahrenheitDiff
impl UnwindSafe for FahrenheitDiff
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