Impl From<T> for Trait where T: Trait

My exact use case would is impl From<Box<T>> for Box<Trait> where T: Trait, to be exact. Do you know an alternative?

You certainly can do this! You don't even need to implement From, because Rust will happily coerce Box<T: Trait> to Box<Trait>. See this example.

1 Like