use-rock 0.1.0

Primitive rock vocabulary for RustUse
Documentation
  • Coverage
  • 13.89%
    5 out of 36 items documented1 out of 15 items with examples
  • Size
  • Source code size: 14.57 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 854.48 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-geology
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-rock

Small rock vocabulary primitives for RustUse.

Example

use use_rock::{RockComposition, RockKind, RockName, RockTexture};

# fn main() -> Result<(), Box<dyn std::error::Error>> {
let name = RockName::new("Basalt")?;
let composition = RockComposition::describe("mafic", ["Pyroxene", "Plagioclase"])?;

assert_eq!(name.as_str(), "Basalt");
assert_eq!(RockKind::Igneous.to_string(), "igneous");
assert_eq!(RockTexture::FineGrained.to_string(), "fine-grained");
assert_eq!(composition.to_string(), "mafic [Pyroxene, Plagioclase]");
# Ok(())
# }