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