jeremyletang / rust-sfml

SFML bindings for Rust
Other
638 stars 88 forks source link

Make enum CursorType Hashable #286

Closed dogunbound closed 2 years ago

dogunbound commented 2 years ago

My inspiration for doing this is to allow me to create a hashmap of cursors in my resource manager, with relevant keys rather than using custom keys.

crumblingstatue commented 2 years ago

Makes sense to impl Hash for this, thanks!