Expand description
§use-pressure-system
Primitive pressure system vocabulary.
use-pressure-system models pressure system kinds, pressure system names, simple strength labels, and cyclone kind vocabulary. It does not model pressure fields, track storms, or fetch advisories.
use use_pressure_system::{CycloneKind, PressureSystemKind, PressureSystemName};
let name = PressureSystemName::new("Azores High").unwrap();
assert_eq!(name.as_str(), "Azores High");
assert_eq!(PressureSystemKind::High.to_string(), "high");
assert_eq!(CycloneKind::PolarLow.to_string(), "polar-low");Structs§
- Pressure
System Name - A non-empty pressure system name.
- Pressure
System Strength - A non-empty descriptive pressure system strength label.
Enums§
- Cyclone
Kind - Stable cyclone-kind vocabulary.
- Cyclone
Kind Parse Error - Error returned when parsing cyclone kinds fails.
- Pressure
System Kind - Stable pressure-system kind vocabulary.
- Pressure
System Kind Parse Error - Error returned when parsing pressure-system kinds fails.
- Pressure
System Value Error - Errors returned by pressure-system constructors.