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.
1 parent 12a9ced commit de6b6f8Copy full SHA for de6b6f8
text/0000-read-buf.md
@@ -252,6 +252,13 @@ impl Read for TcpStream {
252
/// buffer that has been logically filled with data, a region that has been initialized at some point but not yet
253
/// logically filled, and a region at the end that is fully uninitialized. The filled region is guaranteed to be a
254
/// subset of the initialized region.
255
+///
256
+/// In summary, the contents of the buffer can be visualized as:
257
+/// ```not_rust
258
+/// [ capacity ]
259
+/// [ filled | unfilled ]
260
+/// [ initialized | uninitialized ]
261
+/// ```
262
pub struct ReadBuf<'a> {
263
buf: &'a mut [MaybeUninit<u8>],
264
filled: usize,
0 commit comments