use-food-web 0.1.0

Primitive food-web vocabulary for RustUse
Documentation
  • Coverage
  • 10%
    3 out of 30 items documented1 out of 14 items with examples
  • Size
  • Source code size: 11.24 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 821.54 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s 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-food-web

Primitive food-web vocabulary.

use-food-web models non-empty food-web names, descriptive feeding relations and energy-flow directions, and simple food-web links between organism labels. It does not simulate energy transfer, calculate biomass flow, build graph algorithms beyond trivial relationship storage, or infer feeding relationships.

Example

use use_food_web::{EnergyFlowDirection, FeedingRelation, FoodWebLink, FoodWebName};

let name = FoodWebName::new("reef shelf web").unwrap();
let link = FoodWebLink::new("zooplankton", "anchovy", FeedingRelation::Consumes).unwrap();

assert_eq!(name.to_string(), "reef shelf web");
assert_eq!(link.to_string(), "zooplankton -[consumes]-> anchovy");
assert_eq!(EnergyFlowDirection::PreyToPredator.to_string(), "prey-to-predator");

Scope

  • food-web names and labels
  • descriptive feeding relations and energy-flow directions
  • simple relationship links between organism labels

Non-goals

  • energy transfer simulation
  • biomass flow calculations
  • graph algorithm surfaces beyond trivial storage
  • feeding relationship inference

License

Licensed under either of the following, at your option:

  • MIT License
  • Apache License, Version 2.0