use-population 0.1.0

Primitive ecological population vocabulary for RustUse
Documentation
  • Coverage
  • 18.52%
    5 out of 27 items documented1 out of 17 items with examples
  • Size
  • Source code size: 10.94 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 888.69 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-population

Primitive ecological population vocabulary.

use-population models non-empty population identifiers and names, non-negative population sizes and densities, and descriptive population trends. It does not model population dynamics, simulate growth, estimate population size, or implement demographic models.

Example

use use_population::{PopulationDensity, PopulationId, PopulationName, PopulationSize, PopulationTrend};

let id = PopulationId::new("marsh-herons")?;
let name = PopulationName::new("Marsh herons")?;
let size = PopulationSize::new(420)?;
let density = PopulationDensity::new(3.5)?;

assert_eq!(id.to_string(), "marsh-herons");
assert_eq!(name.to_string(), "Marsh herons");
assert_eq!(size.get(), 420);
assert_eq!(density.get(), 3.5);
assert_eq!(PopulationTrend::Stable.to_string(), "stable");
# Ok::<(), Box<dyn std::error::Error>>(())

Scope

  • population identifiers and names
  • non-negative population sizes and densities
  • descriptive population trend labels

Non-goals

  • population dynamics modeling
  • growth simulation
  • population estimation
  • demographic models

License

Licensed under either of the following, at your option:

  • MIT License
  • Apache License, Version 2.0