use-ecosystem 0.1.0

Primitive ecosystem vocabulary for RustUse
Documentation
  • Coverage
  • 8.33%
    3 out of 36 items documented1 out of 13 items with examples
  • Size
  • Source code size: 11.17 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 831.62 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-ecosystem

Primitive ecosystem vocabulary.

use-ecosystem models non-empty ecosystem names, descriptive ecosystem kinds and scales, and simple ecosystem component labels. It does not simulate ecosystems, calculate ecosystem services, fetch data, or model energy flow.

Example

use use_ecosystem::{EcosystemComponent, EcosystemKind, EcosystemName, EcosystemScale};

let name = EcosystemName::new("coastal marsh").unwrap();
let component = EcosystemComponent::new("salt-tolerant grasses").unwrap();

assert_eq!(name.to_string(), "coastal marsh");
assert_eq!(EcosystemKind::Wetland.to_string(), "wetland");
assert_eq!("regional".parse::<EcosystemScale>().unwrap(), EcosystemScale::Regional);
assert_eq!(component.to_string(), "salt-tolerant grasses");

Scope

  • ecosystem names and labels
  • descriptive ecosystem kinds and scales
  • descriptive ecosystem component labels

Non-goals

  • ecosystem simulation
  • ecosystem services calculations
  • external ecosystem data fetching
  • energy flow modeling

License

Licensed under either of the following, at your option:

  • MIT License
  • Apache License, Version 2.0