Is it possible to use a HashSet as the key to a HashMap?
To make something the key of a HashMap, you need to satisfy 3 traits: Hash — How do you calculate a hash value for the type? PartialEq — How do you decide if two instances of a type are the same? Eq — Can you guarantee that the equality is reflexive, symmetric, and transitive? This … Read more