pub struct Kelvin(pub f64);
Expand description
Temperature in Kelvin units.
Tuple Fields
0: f64
Trait Implementations
sourceimpl<T> Add<T> for Kelvinwhere
CelsiusDiff: From<T>,
impl<T> Add<T> for Kelvinwhere
CelsiusDiff: From<T>,
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 MulAssign<f64> for Kelvin
impl MulAssign<f64> for Kelvin
sourcefn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moresourceimpl<T> PartialEq<T> for Kelvinwhere
Kelvin: From<T> + Quantity,
T: Quantity,
impl<T> PartialEq<T> for Kelvinwhere
Kelvin: From<T> + Quantity,
T: Quantity,
sourceimpl<T> PartialOrd<T> for Kelvinwhere
Kelvin: From<T> + Quantity,
T: Quantity,
impl<T> PartialOrd<T> for Kelvinwhere
Kelvin: 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 Kelvin
impl Quantity for Kelvin
impl Copy for Kelvin
impl TempDiff for Kelvin
impl Temperature for Kelvin
Auto Trait Implementations
impl RefUnwindSafe for Kelvin
impl Send for Kelvin
impl Sync for Kelvin
impl Unpin for Kelvin
impl UnwindSafe for Kelvin
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