prust icon indicating copy to clipboard operation
prust copied to clipboard

remove PartialEq bound

Open jdonszelmann opened this issue 2 years ago • 0 comments

This makes the api a bit more consistent to HashMap/HashSet. I renamed empty to new, and made it an associated function like in HashMap. Then, I removed the PartialEq bound from the struct, which is good practice. That makes it easier to include the HashMap in another struct without having to propagate the bounds up.

jdonszelmann avatar Nov 24 '23 21:11 jdonszelmann