A while back, I proposed an RFC for a
DerefMove trait, with the hopes of making part of
Box's magic removable from the compiler.
Unfortunately, I neglected to account for partial moves out of
Box, which means that it is not implementable as proposed in a backwards compatible manner.
I think it may be possible to implement
DerefMove as an extension to the current mechanisms, however, if we make it extremely magical. For an explanation of how magical I mean, see this post.
The question then is whether this is worth pursuing, possibly as a direction towards
&move references, or whether it is better holding off and revamping this into proper
&move support. Thoughts?