use-catalog-object 0.1.0

Primitive astronomical catalog object vocabulary for RustUse
Documentation
  • Coverage
  • 14.81%
    4 out of 27 items documented1 out of 13 items with examples
  • Size
  • Source code size: 11.29 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 775.24 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-catalog-object

Primitive astronomical catalog object vocabulary.

use-catalog-object models catalog names, object identifiers, designations, and descriptive catalog object kinds. It does not fetch catalog records, validate against remote catalogs, resolve object aliases, or implement database clients.

use use_catalog_object::{
    CatalogDesignation, CatalogName, CatalogObjectId, CatalogObjectKind,
};

let name = CatalogName::new("Messier").unwrap();
let object_id = CatalogObjectId::new("031").unwrap();
let designation = CatalogDesignation::new("Messier 31").unwrap();

assert_eq!(name.as_str(), "Messier");
assert_eq!(object_id.as_str(), "031");
assert_eq!(designation.as_str(), "Messier 31");
assert_eq!(CatalogObjectKind::Messier.to_string(), "messier");