Struct islabtech_upw_sensor_v1::measurements::Temperature
source · pub struct Temperature(/* private fields */);Expand description
temperature in °C
Implementations§
source§impl Temperature
impl Temperature
pub fn from_celsius(value: f64) -> Temperature
pub fn as_celsius(&self) -> f64
pub fn as_kelvin(&self) -> f64
Trait Implementations§
source§impl Clone for Temperature
impl Clone for Temperature
source§fn clone(&self) -> Temperature
fn clone(&self) -> Temperature
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for Temperature
impl Debug for Temperature
source§impl<'de> Deserialize<'de> for Temperature
impl<'de> Deserialize<'de> for Temperature
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
source§impl Display for Temperature
impl Display for Temperature
source§impl From<f64> for Temperature
impl From<f64> for Temperature
source§impl PartialEq for Temperature
impl PartialEq for Temperature
source§fn eq(&self, other: &Temperature) -> bool
fn eq(&self, other: &Temperature) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for Temperature
impl PartialOrd for Temperature
source§fn partial_cmp(&self, other: &Temperature) -> Option<Ordering>
fn partial_cmp(&self, other: &Temperature) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl Serialize for Temperature
impl Serialize for Temperature
impl Copy for Temperature
impl StructuralPartialEq for Temperature
Auto Trait Implementations§
impl Freeze for Temperature
impl RefUnwindSafe for Temperature
impl Send for Temperature
impl Sync for Temperature
impl Unpin for Temperature
impl UnwindSafe for Temperature
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