pub struct DegCelsius { /* private fields */ }Expand description
A temperature, in degrees Celsius (°C).
Obtain the physical value with f32::from (or .into()).
Trait Implementations§
Source§impl Clone for DegCelsius
impl Clone for DegCelsius
Source§fn clone(&self) -> DegCelsius
fn clone(&self) -> DegCelsius
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DegCelsius
Source§impl Debug for DegCelsius
impl Debug for DegCelsius
Source§impl<'de> Deserialize<'de> for DegCelsius
impl<'de> Deserialize<'de> for DegCelsius
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DegCelsius
Source§impl From<DegCelsius> for f32
Converts to °C (the raw register value divided by 200).
impl From<DegCelsius> for f32
Converts to °C (the raw register value divided by 200).
Source§fn from(value: DegCelsius) -> f32
fn from(value: DegCelsius) -> f32
Converts to this type from the input type.
Source§impl PartialEq for DegCelsius
impl PartialEq for DegCelsius
Source§fn eq(&self, other: &DegCelsius) -> bool
fn eq(&self, other: &DegCelsius) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DegCelsius
impl Serialize for DegCelsius
impl StructuralPartialEq for DegCelsius
Auto Trait Implementations§
impl Freeze for DegCelsius
impl RefUnwindSafe for DegCelsius
impl Send for DegCelsius
impl Sync for DegCelsius
impl Unpin for DegCelsius
impl UnsafeUnpin for DegCelsius
impl UnwindSafe for DegCelsius
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