use-fossil 0.1.0

Primitive fossil vocabulary for RustUse
Documentation
  • Coverage
  • 8.82%
    3 out of 34 items documented1 out of 13 items with examples
  • Size
  • Source code size: 13.41 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 847.43 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-geology
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-fossil

Small fossil vocabulary primitives for RustUse.

Example

use use_fossil::{FossilKind, FossilName, FossilOccurrence, FossilPreservation};

# fn main() -> Result<(), Box<dyn std::error::Error>> {
let name = FossilName::new("Trilobite trace")?;
let occurrence = FossilOccurrence::new(
	Some("Burgess Shale".to_string()),
	Some("Cambrian".to_string()),
)?;

assert_eq!(name.as_str(), "Trilobite trace");
assert_eq!(FossilKind::TraceFossil.to_string(), "trace-fossil");
assert_eq!(FossilPreservation::Compressed.to_string(), "compressed");
assert_eq!(occurrence.to_string(), "Burgess Shale @ Cambrian");
# Ok(())
# }