use-geologic-time 0.1.0

Primitive geologic time vocabulary for RustUse
Documentation
  • Coverage
  • 5.77%
    3 out of 52 items documented1 out of 14 items with examples
  • Size
  • Source code size: 16.02 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1 MB 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-geology
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-geologic-time

Small geologic time vocabulary primitives for RustUse.

Example

use use_geologic_time::{GeologicAge, GeologicEon, GeologicEpoch, GeologicEra, GeologicPeriod};

# fn main() -> Result<(), Box<dyn std::error::Error>> {
let epoch = GeologicEpoch::new("Holocene")?;
let age = GeologicAge::new(145.0)?;

assert_eq!(GeologicEon::Phanerozoic.to_string(), "phanerozoic");
assert_eq!(GeologicEra::Mesozoic.to_string(), "mesozoic");
assert_eq!(GeologicPeriod::Jurassic.to_string(), "jurassic");
assert_eq!(epoch.as_str(), "Holocene");
assert_eq!(age.millions_of_years_before_present(), 145.0);
# Ok(())
# }