use-celestial-body 0.1.0

Primitive celestial body vocabulary for RustUse
Documentation
  • Coverage
  • 8.11%
    3 out of 37 items documented1 out of 14 items with examples
  • Size
  • Source code size: 12.43 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 848.37 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-celestial-body

Primitive celestial body vocabulary.

use-celestial-body models non-empty celestial body names and identifiers, descriptive body kinds, and descriptive status labels. It does not fetch celestial object records, validate against external catalogs, infer classifications, or simulate motion.

use use_celestial_body::{
    CelestialBodyId, CelestialBodyKind, CelestialBodyName, CelestialBodyStatus,
};

let name = CelestialBodyName::new("Alpha Centauri A").unwrap();
let identifier = CelestialBodyId::new("HIP 71683").unwrap();

assert_eq!(name.as_str(), "Alpha Centauri A");
assert_eq!(identifier.as_str(), "HIP 71683");
assert_eq!(CelestialBodyKind::Star.to_string(), "star");
assert_eq!(CelestialBodyStatus::Confirmed.to_string(), "confirmed");