use-niche 0.1.0

Primitive ecological niche vocabulary for RustUse
Documentation
  • Coverage
  • 15.38%
    4 out of 26 items documented1 out of 14 items with examples
  • Size
  • Source code size: 9.93 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 794.31 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-niche

Primitive ecological niche vocabulary.

use-niche models non-empty niche names, descriptive niche kinds, resource-use labels, and non-negative niche breadth values. It does not infer niche overlap, model competition, implement species-distribution modeling, or calculate niche breadth from data.

Example

use use_niche::{NicheBreadth, NicheKind, NicheName, ResourceUse};

let name = NicheName::new("reef grazer").unwrap();
let resource = ResourceUse::new("filamentous algae").unwrap();
let breadth = NicheBreadth::new(2.5).unwrap();

assert_eq!(name.to_string(), "reef grazer");
assert_eq!(NicheKind::Trophic.to_string(), "trophic");
assert_eq!(resource.to_string(), "filamentous algae");
assert_eq!(breadth.get(), 2.5);

Scope

  • niche names and labels
  • descriptive niche kinds
  • resource-use labels
  • non-negative niche breadth values

Non-goals

  • niche overlap inference
  • competition modeling
  • species-distribution modeling
  • niche breadth calculation from data

License

Licensed under either of the following, at your option:

  • MIT License
  • Apache License, Version 2.0