Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: missing Read and Write methods #245

Merged
merged 7 commits into from
Sep 28, 2019

Conversation

dignifiedquire
Copy link
Member

@dignifiedquire dignifiedquire commented Sep 27, 2019

Ref: #131

  • Read::by_ref
  • Read::bytes
  • Read::chain
  • Read::take
  • Write::by_ref
  • Write::write_fmt postponed until [tracking] fmt #247 is solved

Needs fixing:

  • BufRead for Take
  • BufRead for Chain
  • by_ref conflict between Read and Write, unable to add both, as they conflict, and the current state of things does not allow to differentiate between the two.

@dignifiedquire dignifiedquire mentioned this pull request Sep 27, 2019
22 tasks
@dignifiedquire dignifiedquire marked this pull request as ready for review September 27, 2019 23:01
@dignifiedquire
Copy link
Member Author

marking as ready, this can be reviewed and merged, and Write::by_ref figured out later

src/io/read/bytes.rs Outdated Show resolved Hide resolved
src/io/read/mod.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really thorough, and is looking 💯. I've left a few comments about some minor things, but overall this PR is great!

Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet! Thanks so much!

@yoshuawuyts
Copy link
Contributor

bors r+

bors bot added a commit that referenced this pull request Sep 28, 2019
245: feat: missing Read and Write methods r=yoshuawuyts a=dignifiedquire

Ref: #131 

- [x] Read::by_ref
- [x] Read::bytes
- [x] Read::chain
- [x] Read::take
- [ ] Write::by_ref
- [ ] ~~Write::write_fmt~~ postponed until #247 is solved

Needs fixing:

- [x] `BufRead` for `Take`
- [x] `BufRead` for `Chain`
- [ ] `by_ref` conflict between `Read` and `Write`, unable to add both, as they conflict, and the current state of things does not allow to differentiate between the two.


Co-authored-by: dignifiedquire <dignifiedquire@users.noreply.github.com>
@bors
Copy link
Contributor

bors bot commented Sep 28, 2019

Build succeeded

  • continuous-integration/travis-ci/push

@bors bors bot merged commit 064b44f into async-rs:master Sep 28, 2019
@yoshuawuyts yoshuawuyts mentioned this pull request Oct 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants