impl<T, U: From<T>> From<Vec<T>> for Vec<U>

Exactly this.

From impls like this are widely desired -- Option wants an analogous one, for example -- but can't happen yet.

1 Like