Impl From<T> for Trait where T: Trait


#1

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


#2

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.