use-boundary 0.1.0

Primitive boundary vocabulary for RustUse
Documentation
  • Coverage
  • 7.14%
    2 out of 28 items documented1 out of 9 items with examples
  • Size
  • Source code size: 9.94 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 669.26 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-geography
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-boundary

Primitive boundary vocabulary for RustUse.

use-boundary provides descriptive boundary names, kinds, and statuses without storing polygon geometry or performing map rendering.

Non-goals

  • polygon topology
  • boundary intersection validation
  • dispute resolution
  • map rendering

Example

use use_boundary::{BoundaryKind, BoundaryName, BoundaryStatus};

# fn main() -> Result<(), Box<dyn std::error::Error>> {
let name = BoundaryName::new("Continental Divide")?;
let kind = "watershed".parse::<BoundaryKind>()?;
let status = "approximate".parse::<BoundaryStatus>()?;

assert_eq!(name.as_str(), "Continental Divide");
assert_eq!(kind, BoundaryKind::Watershed);
assert_eq!(status, BoundaryStatus::Approximate);
# Ok(())
# }