pub struct Temperature { /* private fields */ }
Expand description
Represents a single temperature reading from the TSIC 306 sensor.
Implementations§
Source§impl Temperature
impl Temperature
Sourcepub fn as_celsius(&self) -> f32
pub fn as_celsius(&self) -> f32
Returns the temperature in degree celsius.
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