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

Which factor determines whether a trait can be used as a trait object (`dyn Trait`)?

trait Repo { fn get(&self, id: u32) -> String; fn make() -> Self; }