Hey @rustlang there's no way for a struct to impl/not impl a trait like Eq based on whether or not its generic types impl the trait right? I'd *really* like geo_types::Coordinate to go in a Hash Map when using ints or ordered_float, but that looks to be impossible :(
7
2
3
You can put an impl together which relies on traits of your generic arguments. impl<T: PartialEq> PartialEq for Coordinate<T> { ... }

Mar 20, 2020 ยท 6:46 PM UTC

2