▲ | cjfd 3 days ago | |||||||
The problem seems to be that people want this to be implicit. If you have to call an explicit function to turn an instance of type A into an instance of BTrait anyone can define such a function anywhere. | ||||||||
▲ | magicalhippo 3 days ago | parent [-] | |||||||
Alternatively do what's done for functions in other languages (I don't use Rust) and use the most recently defined one. That could lead to different results if you change include/import order but hey if you don't want that then just be explicit. | ||||||||
|