use-tectonic-plate 0.1.0

Primitive tectonic plate vocabulary for RustUse
Documentation
  • Coverage
  • 13.04%
    3 out of 23 items documented1 out of 11 items with examples
  • Size
  • Source code size: 10.29 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 757.37 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-tectonic-plate

Small tectonic plate vocabulary primitives for RustUse.

Example

use use_tectonic_plate::{PlateBoundaryKind, PlateKind, PlateMotion, TectonicPlateName};

# fn main() -> Result<(), Box<dyn std::error::Error>> {
let name = TectonicPlateName::new("Pacific Plate")?;
let motion = PlateMotion::new("northwest")?;

assert_eq!(name.as_str(), "Pacific Plate");
assert_eq!(PlateKind::Oceanic.to_string(), "oceanic");
assert_eq!(PlateBoundaryKind::Divergent.to_string(), "divergent");
assert_eq!(motion.as_str(), "northwest");
# Ok(())
# }