use-trophic-level 0.1.0

Primitive trophic-level vocabulary for RustUse
Documentation
  • Coverage
  • 12%
    3 out of 25 items documented1 out of 11 items with examples
  • Size
  • Source code size: 9.59 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 716.99 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s 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-trophic-level

Primitive trophic-level vocabulary.

use-trophic-level models descriptive trophic levels and roles plus non-negative trophic position values. It does not calculate trophic position from isotope data, model energy pyramids, or simulate food chains.

Example

use use_trophic_level::{TrophicLevel, TrophicPosition, TrophicRole};

let role = TrophicRole::new("reef grazer").unwrap();
let position = TrophicPosition::new(2.0).unwrap();

assert_eq!(TrophicLevel::PrimaryConsumer.to_string(), "primary-consumer");
assert_eq!(role.to_string(), "reef grazer");
assert_eq!(position.get(), 2.0);

Scope

  • descriptive trophic levels and roles
  • non-negative trophic position values

Non-goals

  • isotope-derived trophic position calculation
  • energy pyramid modeling
  • food-chain simulation

License

Licensed under either of the following, at your option:

  • MIT License
  • Apache License, Version 2.0