Question for those into @rustlang: Assume I have a trait C which is a sub-trait of B which is a sub-trait of A. If I have a custom smart pointer Smart<dyn C>, is there a way to get a Smart<dyn A> without having to impl From for each link in the sub-typing chain?
-
-
Yea going one link in the chain is not an issue. I just wish there was some way to easily go from C to A directly
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.