{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/789","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/789/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/789/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/789/events","html_url":"https://github.com/rust-lang/rfcs/issues/789","id":56221321,"number":789,"title":"Add Vec::move_all","user":{"login":"steveklabnik","id":27786,"avatar_url":"https://avatars.githubusercontent.com/u/27786?v=3","gravatar_id":"","url":"https://api.github.com/users/steveklabnik","html_url":"https://github.com/steveklabnik","followers_url":"https://api.github.com/users/steveklabnik/followers","following_url":"https://api.github.com/users/steveklabnik/following{/other_user}","gists_url":"https://api.github.com/users/steveklabnik/gists{/gist_id}","starred_url":"https://api.github.com/users/steveklabnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveklabnik/subscriptions","organizations_url":"https://api.github.com/users/steveklabnik/orgs","repos_url":"https://api.github.com/users/steveklabnik/repos","events_url":"https://api.github.com/users/steveklabnik/events{/privacy}","received_events_url":"https://api.github.com/users/steveklabnik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-02T10:50:12Z","updated_at":"2015-02-02T10:50:12Z","closed_at":null,"body":"<a href=\"https://github.com/mahkoh\"><img src=\"https://avatars.githubusercontent.com/u/1882250?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [mahkoh](https://github.com/mahkoh)**\n_Friday Nov 21, 2014 at 21:38 GMT_\n\n_For earlier discussion, see https://github.com/rust-lang/rust/issues/19196_\n\n_This issue was labelled with: A-collections, A-libs, I-enhancement in the Rust repository_\n\n----\n\n```rust\r\n    /// Moves all elements in a vector to the `Vec`.\r\n    ///\r\n    /// Iterates over the vector `other`, removes each element, and then appends\r\n    /// it to this `Vec`. The `other` vector is traversed in-order.\r\n    ///\r\n    /// # Example\r\n    ///\r\n    /// ```\r\n    /// let mut vec1 = vec![1i];\r\n    /// let mut vec2 = vec![2, 3, 4];\r\n    /// vec.move_all(&mut vec2);\r\n    /// assert_eq!(vec1, vec![1, 2, 3, 4]);\r\n    /// assert_eq!(vec2, vec![]);\r\n    /// ```\r\n    pub fn move_all(&mut self, other: &mut Vec<T>);\r\n```\n"}}