use-sediment 0.1.0

Primitive sediment vocabulary for RustUse
Documentation
  • Coverage
  • 7.5%
    3 out of 40 items documented1 out of 13 items with examples
  • Size
  • Source code size: 13.54 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 902.85 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-sediment

Small sediment vocabulary primitives for RustUse.

Example

use use_sediment::{GrainSize, Roundness, SedimentKind, SedimentName, Sorting};

# fn main() -> Result<(), Box<dyn std::error::Error>> {
let name = SedimentName::new("Alluvial sand")?;
let grain_size = GrainSize::new(0.25)?;

assert_eq!(name.as_str(), "Alluvial sand");
assert_eq!(SedimentKind::Sand.to_string(), "sand");
assert_eq!(grain_size.millimeters(), 0.25);
assert_eq!(Sorting::WellSorted.to_string(), "well-sorted");
assert_eq!(Roundness::SubRounded.to_string(), "sub-rounded");
# Ok(())
# }