{"action":"created","issue":{"url":"https://api.github.com/repos/murarth/linefeed/issues/59","repository_url":"https://api.github.com/repos/murarth/linefeed","labels_url":"https://api.github.com/repos/murarth/linefeed/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/murarth/linefeed/issues/59/comments","events_url":"https://api.github.com/repos/murarth/linefeed/issues/59/events","html_url":"https://github.com/murarth/linefeed/issues/59","id":460546884,"node_id":"MDU6SXNzdWU0NjA1NDY4ODQ=","number":59,"title":"Request: ability to read a line into a passed `&mut String`","user":{"login":"Lokathor","id":5456384,"node_id":"MDQ6VXNlcjU0NTYzODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5456384?v=4","gravatar_id":"","url":"https://api.github.com/users/Lokathor","html_url":"https://github.com/Lokathor","followers_url":"https://api.github.com/users/Lokathor/followers","following_url":"https://api.github.com/users/Lokathor/following{/other_user}","gists_url":"https://api.github.com/users/Lokathor/gists{/gist_id}","starred_url":"https://api.github.com/users/Lokathor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lokathor/subscriptions","organizations_url":"https://api.github.com/users/Lokathor/orgs","repos_url":"https://api.github.com/users/Lokathor/repos","events_url":"https://api.github.com/users/Lokathor/events{/privacy}","received_events_url":"https://api.github.com/users/Lokathor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-06-25T17:23:27Z","updated_at":"2019-06-25T21:24:53Z","closed_at":null,"author_association":"NONE","body":"I'd like the ability to provide a `&mut String` value to something similar to [Interface::read_line](https://docs.rs/linefeed/0.6.0/linefeed/interface/struct.Interface.html#method.read_line) and then have it write the line message into there, instead of allocating a new `String` each time."},"comment":{"url":"https://api.github.com/repos/murarth/linefeed/issues/comments/505628594","html_url":"https://github.com/murarth/linefeed/issues/59#issuecomment-505628594","issue_url":"https://api.github.com/repos/murarth/linefeed/issues/59","id":505628594,"node_id":"MDEyOklzc3VlQ29tbWVudDUwNTYyODU5NA==","user":{"login":"Lokathor","id":5456384,"node_id":"MDQ6VXNlcjU0NTYzODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5456384?v=4","gravatar_id":"","url":"https://api.github.com/users/Lokathor","html_url":"https://github.com/Lokathor","followers_url":"https://api.github.com/users/Lokathor/followers","following_url":"https://api.github.com/users/Lokathor/following{/other_user}","gists_url":"https://api.github.com/users/Lokathor/gists{/gist_id}","starred_url":"https://api.github.com/users/Lokathor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lokathor/subscriptions","organizations_url":"https://api.github.com/users/Lokathor/orgs","repos_url":"https://api.github.com/users/Lokathor/repos","events_url":"https://api.github.com/users/Lokathor/events{/privacy}","received_events_url":"https://api.github.com/users/Lokathor/received_events","type":"User","site_admin":false},"created_at":"2019-06-25T21:24:53Z","updated_at":"2019-06-25T21:24:53Z","author_association":"NONE","body":"Right, I'm not suggesting that you alter the existing `read_line` in any way. Sorry if that was unclear.\r\n\r\nInstead, I'd like a _separate_ method that can exist in parallel. Something like this\r\n\r\n```rust\r\npub fn read_to_string(&self, &mut String) -> Result<ReadToResult> { ... }\r\n\r\npub enum ReadToResult {\r\n    Eof,\r\n    // the data is already in the String, so we just have an empty variant here\r\n    Success,\r\n    Signal(Signal),\r\n}\r\n```"}}
{"actor":{"display_login":"Lokathor"}}