use-taxonomy 0.1.0

Primitive biological classification vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    42 out of 42 items documented1 out of 25 items with examples
  • Size
  • Source code size: 14.77 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 950.84 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-biology
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-taxonomy

Primitive biological classification vocabulary.

use-taxonomy models taxon names, ranks, taxa, scientific/common names, and ordered lineages. It does not maintain an authoritative taxonomy database, fetch taxonomy data, resolve synonyms, infer classification, or model phylogenetic trees.

use use_taxonomy::{Taxon, TaxonName, TaxonomicLineage, TaxonomicRank};

let kingdom = Taxon::new(TaxonomicRank::Kingdom, TaxonName::new("Animalia").unwrap());
let genus = Taxon::new(TaxonomicRank::Genus, TaxonName::new("Homo").unwrap());
let lineage = TaxonomicLineage::new(vec![kingdom, genus]);

assert_eq!(lineage.len(), 2);
assert_eq!(lineage.taxa()[1].to_string(), "genus: Homo");