georust / geo

Geospatial primitives and algorithms for Rust
https://crates.io/crates/geo
Other
1.53k stars 198 forks source link

Implement Area based on traits #1115

Open kylebarron opened 10 months ago

kylebarron commented 10 months ago

An exploration of https://github.com/georust/geo/issues/1113, based on top of #1114. Having a bunch of traits is verbose 😕 . Is there any way to group lots of traits as one? Wishing for something like

pub mod AreaTraits {
    pub use super::AreaPoint;
    pub use super::AreaLineString;
}

where importing AreaTraits would add all of the internal traits to scope. Guessing that doesn't exist, and probably for a good reason.

frewsxcv commented 8 months ago

I hope it's okay I converted this to a draft PR, since it's not really ready for a review until we figure out a plan for geo-traits