Slug: trait-assoc-01 · Paired reading: Chapter 10
Prompt
Define trait Parser { type Output; fn parse(&self, s: &str) -> Option<Self::Output>; } and struct I32Parser with Output = i32.
Associated type: the impl chooses Output (one per impl).