pub struct Celsius(pub i32);Expand description
Temperature wrapper for type-safety. Value is stored in Centigrade (e.g., 2350 = 23.50 °C).
Tuple Fields§
§0: i32Trait Implementations§
Auto Trait Implementations§
impl Freeze for Celsius
impl RefUnwindSafe for Celsius
impl Send for Celsius
impl Sync for Celsius
impl Unpin 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