Thx, it's making more sense now. One thing still not clear:
How exactly would it work? Box<dyn Trait>
is a fat pointer with two parts: vtable and data. Wouldn't the shim need to be a fat pointer with 3 parts? vtable, data and context?
Thx, it's making more sense now. One thing still not clear:
How exactly would it work? Box<dyn Trait>
is a fat pointer with two parts: vtable and data. Wouldn't the shim need to be a fat pointer with 3 parts? vtable, data and context?