Closed
Description
... and implement/derive them.
Traits like Eq
, Hash
, Ord
, Clone
are sometimes forgotten (or have been missed, in the various library changes that have happened), and this is annoying for downstream users. To paper over the deeper issue (how to make adding these impls more natural/harder to forget), impls for all the various traits can be added to types.
List of types missing things just from a basic scan:
- many types in
collections
(only implement thePartial
comparison traits, and pretty much none of them implementHash
) semver::Version
- all types in
num
are missingHash
url::Path
,url::UserInfo
uuid::UuidVariant
,uuid::UuidVersion