2 ms·
> For instance, a child object can survive the death of a parent by being adopted by another. This is loosely speaking what the qcell crate provides already, v
by zozbot234 3y ago
> For instance, a child object can survive the death of a parent by being adopted by another.
This is loosely speaking what the qcell crate provides already, via TCell. But the "adoption" protocol involves the use of complex patterns where compile-time "token" types (which one could also see as capabilities for the underlying object) are passed to the relevant code.