Struct metfor::CelsiusDiff
source · pub struct CelsiusDiff(pub f64);
Expand description
Temperature difference in Celsius units.
Tuple Fields
0: f64
Trait Implementations
sourceimpl<T> Add<T> for CelsiusDiffwhere
CelsiusDiff: From<T> + Quantity,
T: Quantity,
impl<T> Add<T> for CelsiusDiffwhere
CelsiusDiff: From<T> + Quantity,
T: Quantity,
sourceimpl<T> AddAssign<T> for CelsiusDiffwhere
CelsiusDiff: From<T> + Quantity,
T: Quantity,
impl<T> AddAssign<T> for CelsiusDiffwhere
CelsiusDiff: From<T> + Quantity,
T: Quantity,
sourcefn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+=
operation. Read moresourceimpl Borrow<f64> for CelsiusDiff
impl Borrow<f64> for CelsiusDiff
sourceimpl Clone for CelsiusDiff
impl Clone for CelsiusDiff
sourcefn clone(&self) -> CelsiusDiff
fn clone(&self) -> CelsiusDiff
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CelsiusDiff
impl Debug for CelsiusDiff
sourceimpl Display for CelsiusDiff
impl Display for CelsiusDiff
sourceimpl<T> Div<T> for CelsiusDiffwhere
CelsiusDiff: From<T> + Quantity,
T: Quantity,
impl<T> Div<T> for CelsiusDiffwhere
CelsiusDiff: From<T> + Quantity,
T: Quantity,
sourceimpl From<CelsiusDiff> for FahrenheitDiff
impl From<CelsiusDiff> for FahrenheitDiff
sourcefn from(c: CelsiusDiff) -> Self
fn from(c: CelsiusDiff) -> Self
Converts to this type from the input type.
sourceimpl From<FahrenheitDiff> for CelsiusDiff
impl From<FahrenheitDiff> for CelsiusDiff
sourcefn from(f: FahrenheitDiff) -> Self
fn from(f: FahrenheitDiff) -> Self
Converts to this type from the input type.
sourceimpl Mul<f64> for CelsiusDiff
impl Mul<f64> for CelsiusDiff
sourceimpl MulAssign<f64> for CelsiusDiff
impl MulAssign<f64> for CelsiusDiff
sourcefn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moresourceimpl Neg for CelsiusDiff
impl Neg for CelsiusDiff
sourceimpl<T> PartialEq<T> for CelsiusDiffwhere
CelsiusDiff: From<T> + Quantity,
T: Quantity,
impl<T> PartialEq<T> for CelsiusDiffwhere
CelsiusDiff: From<T> + Quantity,
T: Quantity,
sourceimpl<T> PartialOrd<T> for CelsiusDiffwhere
CelsiusDiff: From<T> + Quantity,
T: Quantity,
impl<T> PartialOrd<T> for CelsiusDiffwhere
CelsiusDiff: From<T> + Quantity,
T: Quantity,
sourcefn partial_cmp(&self, other: &T) -> Option<Ordering>
fn partial_cmp(&self, other: &T) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Quantity for CelsiusDiff
impl Quantity for CelsiusDiff
sourceimpl<T> Sub<T> for CelsiusDiffwhere
CelsiusDiff: From<T> + Quantity,
T: Quantity,
impl<T> Sub<T> for CelsiusDiffwhere
CelsiusDiff: From<T> + Quantity,
T: Quantity,
sourceimpl<T> SubAssign<T> for CelsiusDiffwhere
CelsiusDiff: From<T> + Quantity,
T: Quantity,
impl<T> SubAssign<T> for CelsiusDiffwhere
CelsiusDiff: From<T> + Quantity,
T: Quantity,
sourcefn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the
-=
operation. Read moreimpl Copy for CelsiusDiff
Auto Trait Implementations
impl RefUnwindSafe for CelsiusDiff
impl Send for CelsiusDiff
impl Sync for CelsiusDiff
impl Unpin for CelsiusDiff
impl UnwindSafe for CelsiusDiff
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more