Skip to content

Add Hash trait to Color struct - #33

Open
Some1and2-XC wants to merge 1 commit into
mazznoer:masterfrom
Some1and2-XC:patch-1
Open

Add Hash trait to Color struct#33
Some1and2-XC wants to merge 1 commit into
mazznoer:masterfrom
Some1and2-XC:patch-1

Conversation

@Some1and2-XC

Copy link
Copy Markdown

No description provided.

@Some1and2-XC

Copy link
Copy Markdown
Author

Writing this pull request so that this library can represent colors within a hashmap (mostly for easy #[derive(Hash)] implementations).

The implementation is pretty straightforward, though the derive macro can't be used on Color because f32's don't implement hash themselves for whatever reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant