In Rust, generic return values are a good example of this. ... trait Iterator { type Item; fn next(&mut self) -> Option<Self::Item>; }.
確定! 回上一頁