3 ms·
> What I really meant was that you can't have Vec<T> where T is a trait without also wrapping that in a box In what language can you do something like that? In
by TheCoelacanth 9y ago
> What I really meant was that you can't have Vec<T> where T is a trait without also wrapping that in a box
In what language can you do something like that? In C++, it would compile but anything that you put in the vector would get sliced down to the base type. In Java, everything you put in would get boxed.