This implements the above traits for Gc<T> when T implements them. I have tried to model the trait impls after how std implements them for Rc<T>. There are probably more traits that could be added here. I didn't look too hard at the impls list for Rc and just implemented the few that seemed the most useful.
My use case for this is that I would like to use Gc<Path> as keys in a hashmap.
This implements the above traits for
Gc<T>
whenT
implements them. I have tried to model the trait impls after how std implements them forRc<T>
. There are probably more traits that could be added here. I didn't look too hard at the impls list forRc
and just implemented the few that seemed the most useful.My use case for this is that I would like to use
Gc<Path>
as keys in a hashmap.