becheran / grid

Two dimensional grid data structure
MIT License
82 stars 27 forks source link

Implement Hash for Grid #46

Closed fritzrehde closed 10 months ago

fritzrehde commented 10 months ago

I want to use a (cloned) Grid as a key in a hashmap. This is currently not possible, because Hash isn't implemented for Grid<T>. I think this should be quite straightforward to add, a simple #[derive(Hash)] might already work.

fritzrehde commented 10 months ago

Sorry, I didn't see #43, which is asking for the same thing. Closing because this is a duplicate.