4 ms·
Taking a trait object by reference is a pretty common pattern. Box<Trait> is so pervasive because it's currently the easiest way to get type erasure in return
by Argorak 9y ago
Taking a trait object by reference is a pretty common pattern.
Box<Trait> is so pervasive because it's currently the easiest way to get type erasure in return position.