Kimundi / owning-ref-rs

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

Adding `ToHandle`-like helper functions for Mutex and RwLock #60

Open johnterickson opened 4 years ago

johnterickson commented 4 years ago

Add helper functions so that consumers don't have to write unsafe code to use OwningHandle::new_with_fn with RwLock<T> or Mutex<T>.

For issue #59