Struct metfor::Fahrenheit
source · pub struct Fahrenheit(pub f64);
Expand description
Temperature in Fahrenheit units.
Tuple Fields
0: f64
Trait Implementations
sourceimpl<T> Add<T> for Fahrenheitwhere
FahrenheitDiff: From<T>,
impl<T> Add<T> for Fahrenheitwhere
FahrenheitDiff: From<T>,
sourceimpl Borrow<f64> for Fahrenheit
impl Borrow<f64> for Fahrenheit
sourceimpl Clone for Fahrenheit
impl Clone for Fahrenheit
sourcefn clone(&self) -> Fahrenheit
fn clone(&self) -> Fahrenheit
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 Fahrenheit
impl Debug for Fahrenheit
sourceimpl Display for Fahrenheit
impl Display for Fahrenheit
sourceimpl<T> Div<T> for Fahrenheitwhere
Fahrenheit: From<T> + Quantity,
T: Quantity,
impl<T> Div<T> for Fahrenheitwhere
Fahrenheit: From<T> + Quantity,
T: Quantity,
sourceimpl From<Celsius> for Fahrenheit
impl From<Celsius> for Fahrenheit
sourceimpl From<Fahrenheit> for Celsius
impl From<Fahrenheit> for Celsius
sourcefn from(f: Fahrenheit) -> Self
fn from(f: Fahrenheit) -> Self
Converts to this type from the input type.
sourceimpl From<Fahrenheit> for Kelvin
impl From<Fahrenheit> for Kelvin
sourcefn from(f: Fahrenheit) -> Self
fn from(f: Fahrenheit) -> Self
Converts to this type from the input type.
sourceimpl From<Kelvin> for Fahrenheit
impl From<Kelvin> for Fahrenheit
sourceimpl Mul<f64> for Fahrenheit
impl Mul<f64> for Fahrenheit
sourceimpl MulAssign<f64> for Fahrenheit
impl MulAssign<f64> for Fahrenheit
sourcefn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moresourceimpl<T> PartialEq<T> for Fahrenheitwhere
Fahrenheit: From<T> + Quantity,
T: Quantity,
impl<T> PartialEq<T> for Fahrenheitwhere
Fahrenheit: From<T> + Quantity,
T: Quantity,
sourceimpl<T> PartialOrd<T> for Fahrenheitwhere
Fahrenheit: From<T> + Quantity,
T: Quantity,
impl<T> PartialOrd<T> for Fahrenheitwhere
Fahrenheit: 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 Fahrenheit
impl Quantity for Fahrenheit
sourceimpl<T> Sub<T> for Fahrenheitwhere
Fahrenheit: From<T>,
impl<T> Sub<T> for Fahrenheitwhere
Fahrenheit: From<T>,
impl Copy for Fahrenheit
impl TempDiff for Fahrenheit
impl Temperature for Fahrenheit
Auto Trait Implementations
impl RefUnwindSafe for Fahrenheit
impl Send for Fahrenheit
impl Sync for Fahrenheit
impl Unpin for Fahrenheit
impl UnwindSafe for Fahrenheit
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