Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trait Convenience: IntoIterator {
- fn map(&self) -> Map<IntoIterator::IntoIter> {
- self.into_iter().map()
- }
- }
- impl<T> Convenience for T where T: IntoIterator {}
- fn main() {
- let mut v: Vec<i32> = Vec::new();
- }
Add Comment
Please, Sign In to add comment