Benoît du Garreau
6ce268e10a
Remove bound checks from BorrowedBuf
and BorrowedCursor
methods
2024-04-15 10:29:43 +02:00
joboet
91fe6f9343
core: panic on overflow in BorrowedCursor
2024-04-11 18:33:46 +02:00
Ralf Jung
c06f801ef6
BorrowedCursor docs clarification
2024-03-10 09:48:56 +01:00
bors
405b22f1a3
Auto merge of #120741 - a1phyr:safe_buffer_advance, r=m-ou-se
...
Make `io::BorrowedCursor::advance` safe
This also keeps the old `advance` method under `advance_unchecked` name.
This makes pattern like `std::io::default_read_buf` safe to write.
2024-02-17 00:23:15 +00:00
Benoît du Garreau
0a42a540c6
Make io::BorrowedCursor::advance
safe
...
This also keeps the old `advance` method under `advance_unchecked` name.
This makes pattern like `std::io::default_read_buf` safe to write.
2024-02-07 16:46:28 +01:00
Kornel
da3db9a4f7
Rename MaybeUninit::write_slice
...
#79995
2023-11-11 22:54:07 +00:00
John Millikin
341c85648c
Move BorrowedBuf
and BorrowedCursor
from std:io
to core::io
...
Assigned new feature name `core_io_borrowed_buf` to distinguish from the
`Read::read_buf` functionality in `std::io`.
2023-11-09 07:10:11 +09:00