Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRustnewtype and DerefSingle-choice MCQ

A newtype `struct Wrapper(Vec<i32>)` needs to expose iteration. Which approach respects the orphan rule and idiom?

struct Wrapper(Vec<i32>);