rfcs icon indicating copy to clipboard operation
rfcs copied to clipboard

RFC: Introduce `DerefInto` and `DerefMutInto` for RAII access

Open Thomas-Mewily opened this issue 1 month ago • 8 comments

This RFC introduce DerefInto and DerefMutInto, supertraits of Deref / DerefMut that return targets by value, enabling ergonomic RAII access for types like RefCell, Mutex, and RwLock.

Rendered

Thomas-Mewily avatar Nov 10 '25 21:11 Thomas-Mewily