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

make Buf and BufMut usable as trait objects #186

Merged
merged 1 commit into from
Mar 12, 2018
Merged

make Buf and BufMut usable as trait objects #186

merged 1 commit into from
Mar 12, 2018

Conversation

seanmonstar
Copy link
Member

@seanmonstar seanmonstar commented Mar 8, 2018

  • All the get_* and put_* methods that take T: ByteOrder have
    a where Self: Sized bound added, so that they are only usable from
    sized types. It was impossible to make Buf or BufMut into trait
    objects before, so this change doesn't break anyone.
  • Add get_n_be/get_n_le/put_n_be/put_n_le methods that can be
    used on trait objects.
  • Deprecate the export of ByteOrder and methods generic on it.

Closes #163

- All the `get_*` and `put_*` methods that take `T: ByteOrder` have
  a `where Self: Sized` bound added, so that they are only usable from
  sized types. It was impossible to make `Buf` or `BufMut` into trait
  objects before, so this change doesn't break anyone.
- Add `get_n_be`/`get_n_le`/`put_n_be`/`put_n_le` methods that can be
  used on trait objects.
- Deprecate the export of `ByteOrder` and methods generic on it.
@carllerche carllerche merged commit ce79f0a into tokio-rs:v0.4.x Mar 12, 2018
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.

None yet

2 participants