use-wind 0.1.0

Primitive wind vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    30 out of 30 items documented1 out of 16 items with examples
  • Size
  • Source code size: 11.19 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 762.11 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-meteorology
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-wind

Primitive wind vocabulary.

use-wind models wind speed, wind direction, gusts, stable wind kind labels, and Beaufort scale values. It does not forecast wind, model vector fields, or process radar or station feeds.

use use_wind::{BeaufortScale, WindDirection, WindKind, WindSpeed};

let speed = WindSpeed::new(12.0).unwrap();
let direction = WindDirection::new(270.0).unwrap();
let beaufort = BeaufortScale::new(6).unwrap();

assert_eq!(speed.meters_per_second(), 12.0);
assert_eq!(direction.degrees_from_north(), 270.0);
assert_eq!(beaufort.value(), 6);
assert_eq!(WindKind::Gale.to_string(), "gale");