Based on &* on a Weak<T>, Weak, RC, Drop, Free , getting the address of the RcBox and using it as a usize would suffice.
Based on Address of a Weak<T> , we can't get the address of the RcBox, but we can try to get the address of the T inside of it.
However, based on Weak<T>.as_raw() , it seems that the as_ptr is not stable.
Why do you need to Hash
I want to use it as a key to a HashMap.
Can you use a
Rc<T> instead ?
No, for various gc/loop reasons, I need it to be