mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-15 00:00:18 +02:00
Make bytes_mut -> chunk_mut rename more easily discoverable (#471)
This commit is contained in:
@@ -158,6 +158,9 @@ pub unsafe trait BufMut {
|
||||
/// `chunk_mut()` returning an empty slice implies that `remaining_mut()` will
|
||||
/// return 0 and `remaining_mut()` returning 0 implies that `chunk_mut()` will
|
||||
/// return an empty slice.
|
||||
// The `chunk_mut` method was previously called `bytes_mut`. This alias makes the
|
||||
// rename more easily discoverable.
|
||||
#[cfg_attr(docsrs, doc(alias = "bytes_mut"))]
|
||||
fn chunk_mut(&mut self) -> &mut UninitSlice;
|
||||
|
||||
/// Transfer bytes into `self` from `src` and advance the cursor by the
|
||||
|
||||
Reference in New Issue
Block a user