This PR adds some common traits (Hash and Copy) from Rust's API guidelines to the crate's basic enum types.
I recently needed to create a HashMap using (String, NfFamily) as keys and couldn't since NfFamily didn't implement Hash. I added Copy as well for good measure since these enums are all 1 byte large.
This PR adds some common traits (
Hash
andCopy
) from Rust's API guidelines to the crate's basic enum types.I recently needed to create a HashMap using
(String, NfFamily)
as keys and couldn't sinceNfFamily
didn't implementHash
. I addedCopy
as well for good measure since these enums are all 1 byte large.