payload: {"action":"created","issue":{"url":"https://api.github.com/repos/ralfbiedert/cheats.rs/issues/74","repository_url":"https://api.github.com/repos/ralfbiedert/cheats.rs","labels_url":"https://api.github.com/repos/ralfbiedert/cheats.rs/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/ralfbiedert/cheats.rs/issues/74/comments","events_url":"https://api.github.com/repos/ralfbiedert/cheats.rs/issues/74/events","html_url":"https://github.com/ralfbiedert/cheats.rs/issues/74","id":520369546,"node_id":"MDU6SXNzdWU1MjAzNjk1NDY=","number":74,"title":"Suggestion: section about iteration/iterators","user":{"login":"kud1ing","id":391975,"node_id":"MDQ6VXNlcjM5MTk3NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/391975?v=4","gravatar_id":"","url":"https://api.github.com/users/kud1ing","html_url":"https://github.com/kud1ing","followers_url":"https://api.github.com/users/kud1ing/followers","following_url":"https://api.github.com/users/kud1ing/following{/other_user}","gists_url":"https://api.github.com/users/kud1ing/gists{/gist_id}","starred_url":"https://api.github.com/users/kud1ing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kud1ing/subscriptions","organizations_url":"https://api.github.com/users/kud1ing/orgs","repos_url":"https://api.github.com/users/kud1ing/repos","events_url":"https://api.github.com/users/kud1ing/events{/privacy}","received_events_url":"https://api.github.com/users/kud1ing/received_events","type":"User","site_admin":false},"labels":[{"id":1136551970,"node_id":"MDU6TGFiZWwxMTM2NTUxOTcw","url":"https://api.github.com/repos/ralfbiedert/cheats.rs/labels/type:%20content","name":"type: content","color":"a5f7eb","default":false,"description":"Actual content to appear on cheat sheet."}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-11-09T09:42:23Z","updated_at":"2020-01-09T10:16:05Z","closed_at":null,"author_association":"NONE","body":"https://stackoverflow.com/questions/34733811/what-is-the-difference-between-iter-and-into-iter\r\n\r\nAn \"Iteration\" section could give an overview over:\r\n\r\nTasks:\r\n* iterate over references: [as_ref()](https://doc.rust-lang.org/std/convert/trait.AsRef.html)\r\n* iterate over mutable references \r\n* iterate and consume \r\n\r\nTraits/methods:\r\n* [trait Iterator](https://doc.rust-lang.org/std/iter/trait.Iterator.html)\r\n* producing an iterator:\r\n  * [trait IntoIterator](https://doc.rust-lang.org/std/iter/trait.IntoIterator.html): `into_iter()`:\r\n    * consumes `Self`\r\n      * use reference as in `for x in &y` if this is not desired\r\n    * used by [`for` loop](https://doc.rust-lang.org/std/iter/index.html#for-loops-and-intoiterator)\r\n  * `iter()` does not consume `Self`: defined for [HashMap](https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.iter), [Vec](https://doc.rust-lang.org/std/vec/struct.Vec.html#method.iter)\r\n* consuming an iterator:\r\n  * [trait FromIterator](https://doc.rust-lang.org/std/iter/trait.FromIterator.html)\r\n  * resuming vs non-resuming iterators\r\n"},"comment":{"url":"https://api.github.com/repos/ralfbiedert/cheats.rs/issues/comments/572491102","html_url":"https://github.com/ralfbiedert/cheats.rs/issues/74#issuecomment-572491102","issue_url":"https://api.github.com/repos/ralfbiedert/cheats.rs/issues/74","id":572491102,"node_id":"MDEyOklzc3VlQ29tbWVudDU3MjQ5MTEwMg==","user":{"login":"kud1ing","id":391975,"node_id":"MDQ6VXNlcjM5MTk3NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/391975?v=4","gravatar_id":"","url":"https://api.github.com/users/kud1ing","html_url":"https://github.com/kud1ing","followers_url":"https://api.github.com/users/kud1ing/followers","following_url":"https://api.github.com/users/kud1ing/following{/other_user}","gists_url":"https://api.github.com/users/kud1ing/gists{/gist_id}","starred_url":"https://api.github.com/users/kud1ing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kud1ing/subscriptions","organizations_url":"https://api.github.com/users/kud1ing/orgs","repos_url":"https://api.github.com/users/kud1ing/repos","events_url":"https://api.github.com/users/kud1ing/events{/privacy}","received_events_url":"https://api.github.com/users/kud1ing/received_events","type":"User","site_admin":false},"created_at":"2020-01-09T10:16:05Z","updated_at":"2020-01-09T10:16:05Z","author_association":"NONE","body":"I think we agree that having a section about iteration is not a stupid idea.\r\n\r\nWhat would you think about adding a minimal section (i suggest the main points\r\n* `next()`\r\n* consuming an iterator, e.g. `collect()`\r\n* producing an iterator\r\n\r\nand after that add/remove stuff that does not feel right?"}}
other: {"actor":{"display_login":"kud1ing"}}