pub struct Celsius(pub f32);Expand description
The degrees Celsius temperature unit.
Tuple Fields§
§0: f32Trait Implementations§
impl Copy for Celsius
Source§impl From<Celsius> for Fahrenheit
impl From<Celsius> for Fahrenheit
Source§impl From<Fahrenheit> for Celsius
impl From<Fahrenheit> for Celsius
Source§fn from(value: Fahrenheit) -> Self
fn from(value: Fahrenheit) -> Self
Converts to this type from the input type.
Source§impl PartialOrd for Celsius
impl PartialOrd for Celsius
Source§impl Temperature for Celsius
impl Temperature for Celsius
Source§fn fahrenheit(&self) -> Fahrenheit
fn fahrenheit(&self) -> Fahrenheit
Get the temperature in degrees Fahrenheit (°F).
Source§fn from_celsius(celsius: Celsius) -> Self
fn from_celsius(celsius: Celsius) -> Self
Create a Temperature from a Celsius temperature.
Auto Trait Implementations§
impl Freeze for Celsius
impl RefUnwindSafe for Celsius
impl Send for Celsius
impl Sync for Celsius
impl Unpin for Celsius
impl UnsafeUnpin for Celsius
impl UnwindSafe for Celsius
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