Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRusttrait objects dyn vs genericsSingle-choice MCQ

What is the most accurate trade-off between `Vec<Box<dyn Draw>>` and a generic `Vec<T> where T: Draw`?

trait Draw { fn draw(&self); }