Trait that automatically implies several From implementations?

You currently have to use Into, as in your "workaround". The Rust compiler doesn't currently understand that a trait bound should imply other bounds unless those bounds have Self as the left side (or, equivalently, are written with "supertrait" syntax). I think this is the issue for that:

https://github.com/rust-lang/rust/issues/20671

2 Likes