We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BytesMut::{reserve,try_reserve}
1 parent acd1e0f commit 94e4291Copy full SHA for 94e4291
src/bytes_mut.rs
@@ -551,6 +551,8 @@ impl BytesMut {
551
/// and the original buffer is large enough to fit the requested additional
552
/// capacity, then reallocations will never happen.
553
///
554
+ /// This method does not preserve data stored in the unused capacity.
555
+ ///
556
/// # Examples
557
558
/// In the following example, a new buffer is allocated.
@@ -797,6 +799,8 @@ impl BytesMut {
797
799
/// references through other `BytesMut`s or `Bytes` which point to the same underlying
798
800
/// storage.
801
802
803
804
805
806
/// ```
0 commit comments