I've found two related questions, and it seems that it's neither necessary to define a custom trait nor to use boxing, provided one can use the nightly #![feature(type_alias_impl_trait)]
.
1 Like
I've found two related questions, and it seems that it's neither necessary to define a custom trait nor to use boxing, provided one can use the nightly #![feature(type_alias_impl_trait)]
.