Closed dpc closed 8 years ago
IMHO it's a good idea. I need to put OwningRef
into HashMap
, but currently I cannot, since Hash
is a foreign trait and OwningRef
is a foreign type. I would need to wrap it into my type, but that is just not ergonomic, since I would need to re-implement all the necessary methods from OwningRef
.
The implementation should be trivial - I can prepare the PR (Eq
, PartialEq
, Ord
, PartialOrd
and Hash
) if the owner agrees.
This was resolved when #7 was landed, right?
Yes, this can be closed.
I'm not sure if it's a good idea, but it seems to me that
OwningRef
could implementPartialEq
,Eq
etc. that just do it onT
itself.