tokio-rs / bytes

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

Bytes: Add try_into_mut. #687

Closed rklaehn closed 4 months ago

rklaehn commented 5 months ago

Add try_into_mut that allows getting a BytesMut from an unique Bytes.

Implements #611

Sytten commented 4 months ago

@Darksonn If you have time, I made an attempt at better implementation here: https://github.com/tokio-rs/bytes/pull/695

Sytten commented 4 months ago

@Darksonn we can close this