Closed nerdrew closed 5 years ago
I believe this is conceptually sound, but non-trivial to implement. I haven't used rust in over a year and I'm no longer comfortable making significant changes, so rental is in a critical-fix only mode. Rental's code is pretty gnarly so I'd be hesitant to even accept a PR for this feature. My recommendation is to wrap the rental struct in a custom struct for your deref impl.
Apologies if this is a silly question. I have rentals like this:
Is there a way to make that more seamless? Would a Deref impl do that (assuming such an impl was possible)?