Kimundi / owning-ref-rs

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

Add OwningRef::new_assert_stable_address #12

Closed SimonSapin closed 8 years ago

SimonSapin commented 8 years ago

I’d like to use OwningRef with parking_lot::RwLockReadGuard but can’t implement the StableAddress trait because coherence rules.

SimonSapin commented 8 years ago

https://github.com/Amanieu/parking_lot/commit/3a1baba65d0c22f684d690ba03fd22dacd59fa8c removes the need for this in my specific case.

Kimundi commented 8 years ago

Still looks like a useful addition, thanks!