{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/1152","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1152/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1152/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1152/events","html_url":"https://github.com/rust-lang/rfcs/pull/1152","id":85680892,"number":1152,"title":"Add some of `[T]`’s methods to strings and vice versa","user":{"login":"P1start","id":2055302,"avatar_url":"https://avatars.githubusercontent.com/u/2055302?v=3","gravatar_id":"","url":"https://api.github.com/users/P1start","html_url":"https://github.com/P1start","followers_url":"https://api.github.com/users/P1start/followers","following_url":"https://api.github.com/users/P1start/following{/other_user}","gists_url":"https://api.github.com/users/P1start/gists{/gist_id}","starred_url":"https://api.github.com/users/P1start/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/P1start/subscriptions","organizations_url":"https://api.github.com/users/P1start/orgs","repos_url":"https://api.github.com/users/P1start/repos","events_url":"https://api.github.com/users/P1start/events{/privacy}","received_events_url":"https://api.github.com/users/P1start/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rfcs/labels/T-libs","name":"T-libs","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-06-06T02:33:16Z","updated_at":"2015-06-11T08:28:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rfcs/pulls/1152","html_url":"https://github.com/rust-lang/rfcs/pull/1152","diff_url":"https://github.com/rust-lang/rfcs/pull/1152.diff","patch_url":"https://github.com/rust-lang/rfcs/pull/1152.patch"},"body":"Add some methods that already exist on slices to strings and vice versa. Specifically, the following methods should be added:\r\n\r\n- `str::chunks`\r\n- `str::windows`\r\n- `str::into_string`\r\n- `String::into_boxed_slice`\r\n- `<[T]>::subslice_offset`\r\n\r\n[Rendered](https://github.com/P1start/rfcs/blob/string-slice-api-symmetry/text/0000-slice-string-symmetry.md)"},"comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments/111040456","html_url":"https://github.com/rust-lang/rfcs/pull/1152#issuecomment-111040456","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1152","id":111040456,"user":{"login":"comex","id":47517,"avatar_url":"https://avatars.githubusercontent.com/u/47517?v=3","gravatar_id":"","url":"https://api.github.com/users/comex","html_url":"https://github.com/comex","followers_url":"https://api.github.com/users/comex/followers","following_url":"https://api.github.com/users/comex/following{/other_user}","gists_url":"https://api.github.com/users/comex/gists{/gist_id}","starred_url":"https://api.github.com/users/comex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comex/subscriptions","organizations_url":"https://api.github.com/users/comex/orgs","repos_url":"https://api.github.com/users/comex/repos","events_url":"https://api.github.com/users/comex/events{/privacy}","received_events_url":"https://api.github.com/users/comex/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T08:28:36Z","updated_at":"2015-06-11T08:28:36Z","body":"May be out of scope, but I'd like to see some form of `replace` added to `[T]` or `Vec<T>`.  This would be useful, for example, when dealing with a `&[u8]` which represents a \"string\" that may not be valid UTF-8 (such as the contents of a Unix `OsStr`)."}}