{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/1235","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1235/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1235/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1235/events","html_url":"https://github.com/rust-lang/rfcs/pull/1235","id":98853063,"number":1235,"title":"Add `BufRead::fill_buf_min()`","user":{"login":"cybergeek94","id":3198595,"avatar_url":"https://avatars.githubusercontent.com/u/3198595?v=3","gravatar_id":"","url":"https://api.github.com/users/cybergeek94","html_url":"https://github.com/cybergeek94","followers_url":"https://api.github.com/users/cybergeek94/followers","following_url":"https://api.github.com/users/cybergeek94/following{/other_user}","gists_url":"https://api.github.com/users/cybergeek94/gists{/gist_id}","starred_url":"https://api.github.com/users/cybergeek94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cybergeek94/subscriptions","organizations_url":"https://api.github.com/users/cybergeek94/orgs","repos_url":"https://api.github.com/users/cybergeek94/repos","events_url":"https://api.github.com/users/cybergeek94/events{/privacy}","received_events_url":"https://api.github.com/users/cybergeek94/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":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"milestone":null,"comments":19,"created_at":"2015-08-03T22:51:43Z","updated_at":"2015-08-13T20:04:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rfcs/pulls/1235","html_url":"https://github.com/rust-lang/rfcs/pull/1235","diff_url":"https://github.com/rust-lang/rfcs/pull/1235.diff","patch_url":"https://github.com/rust-lang/rfcs/pull/1235.patch"},"body":"Bikeshedding on the proposed method name is welcome.\r\n\r\n`fill_buf_min()` primarily concerns the semantics of `BufReader`, so it might be more appropriate to add it as an inherent method on that struct instead of as a method of the `BufRead` trait, as discussed in the second item in the Alternatives section. That would suit my use-case just fine; in fact, I copied `BufReader` to the repo where I needed this behavior and added this method, and it works perfectly.\r\n\r\nHowever, these semantics may be desirable on other `BufRead` impls, like `Stdinlock`, so that's why the base proposal discusses adding the method to the `BufRead` trait directly.\r\n\r\n[Rendered.](https://github.com/cybergeek94/rfcs/blob/master/text/0000-fill-buf-min.md)"},"comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments/130823819","html_url":"https://github.com/rust-lang/rfcs/pull/1235#issuecomment-130823819","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1235","id":130823819,"user":{"login":"cybergeek94","id":3198595,"avatar_url":"https://avatars.githubusercontent.com/u/3198595?v=3","gravatar_id":"","url":"https://api.github.com/users/cybergeek94","html_url":"https://github.com/cybergeek94","followers_url":"https://api.github.com/users/cybergeek94/followers","following_url":"https://api.github.com/users/cybergeek94/following{/other_user}","gists_url":"https://api.github.com/users/cybergeek94/gists{/gist_id}","starred_url":"https://api.github.com/users/cybergeek94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cybergeek94/subscriptions","organizations_url":"https://api.github.com/users/cybergeek94/orgs","repos_url":"https://api.github.com/users/cybergeek94/repos","events_url":"https://api.github.com/users/cybergeek94/events{/privacy}","received_events_url":"https://api.github.com/users/cybergeek94/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T20:04:01Z","updated_at":"2015-08-13T20:04:01Z","body":"So another RFC later on, perhaps."}}