Thanks for the solution. Mimicking this with static dispatch seems suitable for the use case. A blanket implementation can make this even shorter: impl <T: A + ?Sized> A for Box<T> { ... } etc..
1 Like
Thanks for the solution. Mimicking this with static dispatch seems suitable for the use case. A blanket implementation can make this even shorter: impl <T: A + ?Sized> A for Box<T> { ... } etc..