use-moon 0.1.0

Primitive moon vocabulary for RustUse
Documentation
  • Coverage
  • 13.64%
    3 out of 22 items documented1 out of 11 items with examples
  • Size
  • Source code size: 9.11 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 653.05 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-astronomy
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-moon

Primitive natural satellite vocabulary.

use-moon models non-empty moon names, descriptive moon kinds, and simple parent-child satellite relations. It does not simulate moon orbits, fetch satellite data, calculate tides, or infer formation history.

use use_moon::{MoonKind, MoonName, SatelliteRelation};

let name = MoonName::new("Europa").unwrap();
let relation = SatelliteRelation::new("Jupiter", "Europa").unwrap();

assert_eq!(name.as_str(), "Europa");
assert_eq!(relation.parent_identifier(), "Jupiter");
assert_eq!(MoonKind::Regular.to_string(), "regular");