Expand description
§use-air-temperature
Primitive meteorological air temperature vocabulary.
use-air-temperature stores air temperature, dew point, heat index, and wind chill values as Celsius f64 wrappers. It does not provide a unit-conversion framework, forecast logic, or heat-index and wind-chill formulas.
use use_air_temperature::{AirTemperature, DewPoint, TemperatureKind};
let air = AirTemperature::new(18.5).unwrap();
let dew_point = DewPoint::new(11.0).unwrap();
assert_eq!(air.celsius(), 18.5);
assert_eq!(dew_point.celsius(), 11.0);
assert_eq!(TemperatureKind::DewPoint.to_string(), "dew-point");Structs§
- AirTemperature
- Air temperature stored in Celsius.
- DewPoint
- Dew-point temperature stored in Celsius.
- Heat
Index - Heat index stored as a descriptive Celsius value.
- Wind
Chill - Wind chill stored as a descriptive Celsius value.
Enums§
- Temperature
Kind - Stable meteorological temperature kind vocabulary.
- Temperature
Kind Parse Error - Error returned when parsing temperature kinds fails.
- Temperature
Value Error - Error returned when temperature values are not finite.