use-planet 0.1.0

Primitive planet vocabulary for RustUse
Documentation
  • Coverage
  • 9.38%
    3 out of 32 items documented1 out of 14 items with examples
  • Size
  • Source code size: 11.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 828.36 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-planet

Primitive planet vocabulary.

use-planet models non-empty planet names, descriptive planet kinds, descriptive planet statuses, and non-empty planetary system names. It does not validate official planet status, fetch exoplanet catalog data, simulate planetary systems, or calculate habitability.

use use_planet::{PlanetKind, PlanetName, PlanetStatus, PlanetarySystemName};

let name = PlanetName::new("Kepler-452b").unwrap();
let system = PlanetarySystemName::new("Kepler-452").unwrap();

assert_eq!(name.as_str(), "Kepler-452b");
assert_eq!(system.as_str(), "Kepler-452");
assert_eq!(PlanetKind::Exoplanet.to_string(), "exoplanet");
assert_eq!(PlanetStatus::Confirmed.to_string(), "confirmed");