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 de6b6f8 commit cff0ec7Copy full SHA for cff0ec7
text/0000-read-buf.md
@@ -605,6 +605,10 @@ trusted and untrusted information can be quite a footgun for unsafe code working
605
before calling `set_len` on the `Vec<u8>` that it's reading into. Moving that bit of state into `ReadBuf` avoids the
606
issue by allowing `ReadBuf` to guarantee that these two values stay consistent.
607
608
+The concept of `ReadBuf` is not inherently tied to working with `u8` buffers; it could alternatively be parameterized
609
+over the value type and hypothetically used in other contexts. However, the API for such a type can be iterated on
610
+in an external crate.
611
+
612
# Prior art
613
[prior-art]: #prior-art
614
0 commit comments