georust / geo

Rust geospatial primitives & algorithms
https://crates.io/crates/geo
Other
1.58k stars 199 forks source link

Remove associated type `T` on `geo-traits` traits. #1258

Open frewsxcv opened 3 weeks ago

frewsxcv commented 3 weeks ago

Do we need to specify T for each of the traits?

kylebarron commented 3 weeks ago

I'm on my phone and can't look at this closely, but I find it very useful to have a compile time generic on the T. I can't quite picture how this would work without the generics.