Kimundi / owning-ref-rs

A library for creating references that carry their owner with them.
MIT License
361 stars 50 forks source link

Implements `ToHandle` for `Mutex<T: 'static>` #40

Open gyscos opened 6 years ago

gyscos commented 6 years ago

Just like RefCell<T: 'static> implements ToHandle, shouldn't Mutex<T: 'static> implement it as well? Or do other problems arise?

My use-case is storing a MutexGuard<'static, T> alongside a Arc<Mutex<T>>.