Skip to content

Commit cff0ec7

Browse files
committed
Note lack of parameterization
1 parent de6b6f8 commit cff0ec7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

text/0000-read-buf.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,10 @@ trusted and untrusted information can be quite a footgun for unsafe code working
605605
before calling `set_len` on the `Vec<u8>` that it's reading into. Moving that bit of state into `ReadBuf` avoids the
606606
issue by allowing `ReadBuf` to guarantee that these two values stay consistent.
607607

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+
608612
# Prior art
609613
[prior-art]: #prior-art
610614

0 commit comments

Comments
 (0)