use-community 0.1.0

Primitive ecological community vocabulary for RustUse
Documentation
  • Coverage
  • 9.09%
    3 out of 33 items documented1 out of 14 items with examples
  • Size
  • Source code size: 11.23 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 798.6 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-ecology
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-community

Primitive ecological community vocabulary.

use-community models non-empty community names, descriptive community kinds and roles, and deterministic community composition labels. It does not infer community structure, compute diversity indices, model succession, or fetch species data.

Example

use use_community::{CommunityComposition, CommunityKind, CommunityName, CommunityRole};

let name = CommunityName::new("reef fish assemblage")?;
let composition = CommunityComposition::new(["parrotfish", "grouper", "wrasse"])?;

assert_eq!(name.to_string(), "reef fish assemblage");
assert_eq!(CommunityKind::AquaticCommunity.to_string(), "aquatic-community");
assert_eq!(CommunityRole::Keystone.to_string(), "keystone");
assert_eq!(composition.iter().next(), Some(&"grouper".to_string()));
# Ok::<(), use_community::CommunityTextError>(())

Scope

  • community names and labels
  • descriptive community kinds and roles
  • deterministic community composition labels

Non-goals

  • community structure inference
  • diversity index calculations
  • succession modeling
  • species data fetching

License

Licensed under either of the following, at your option:

  • MIT License
  • Apache License, Version 2.0