tokio-rs / bytes

Utilities for working with bytes
MIT License
1.87k stars 278 forks source link

Add Buf and BufMut auto-impl for pinned data types #655

Closed dylanplecki closed 8 months ago

dylanplecki commented 8 months ago

Fixes #654.

Adds default implementations for Buf and BufMut on Pin<T> where T is a type that implements Buf/BufMut and Unpin.

See the Rust docs (link) for more information on pinned types.

Darksonn commented 8 months ago

Closing as a breaking change. See https://github.com/tokio-rs/bytes/issues/654.