If you instead prefer augmenting the Iterator trait, you can do it as follows: ... impl<T: Iterator + Clone> ProductRepeat for T where T::Item: Clone {}.
確定! 回上一頁