Enum fxbox_taxonomy::values::Temperature
[−]
[src]
pub enum Temperature { F(f64), C(f64), }
A temperature. Internal representation may be either Fahrenheit or Celcius. The FoxBox adapters are expected to perform conversions to the format requested by their devices.
Variants
F | Fahrenheit | |
C | Celcius |
Methods
impl Temperature
fn as_f(&self) -> f64
Get a temperature in Fahrenheit.
fn as_c(&self) -> f64
Get a temperature in Celcius.