Temperature

Trait Temperature 

Source
pub trait Temperature {
    const ZERO_CELSIUS_IN_MILLIKELVINS: u32 = 273_150u32;

    // Required method
    fn temperature_as_millikelvins(&self) -> Option<u32>;

    // Provided method
    fn temperature_as_millicelsius(&self) -> Option<i32> { ... }
}

Provided Associated Constants§

Required Methods§

Source

fn temperature_as_millikelvins(&self) -> Option<u32>

Returns temperature as milli-kelvins if a temperature reading is available.

Provided Methods§

Source

fn temperature_as_millicelsius(&self) -> Option<i32>

Returns temperature as milli-Celsius if a temperature reading is available.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§