Guest User

Untitled

a guest
Jan 18th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. trait Convenience: IntoIterator {
  2. fn map(&self) -> Map<IntoIterator::IntoIter> {
  3. self.into_iter().map()
  4. }
  5. }
  6.  
  7. impl<T> Convenience for T where T: IntoIterator {}
  8.  
  9. fn main() {
  10. let mut v: Vec<i32> = Vec::new();
  11. }
Add Comment
Please, Sign In to add comment