Carl Lerche
06907f3e7b
Rename Buf/BufMut, methods to chunk/chunk_mut ( #450 )
...
The `bytes()` / `bytes_mut()` name implies the method returns the full
set of bytes represented by `Buf`/`BufMut`. To rectify this, the methods
are renamed to `chunk()` and `chunk_mut()` to reflect the partial nature
of the returned byte slice.
`bytes_vectored()` is renamed `chunks_vectored()`.
Closes #447
2020-12-18 11:04:31 -08:00
Carl Lerche
94c543f74b
remove ext traits ( #431 )
2020-10-16 15:16:23 -07:00
Taiki Endo
7daa7fe053
Change default lint level to warning and deny warnings in CI ( #397 )
2020-07-09 09:12:39 -07:00
Sean McArthur
96268a80d4
Move "extra" methods to extension traits ( #306 )
2019-10-31 09:39:58 -07:00
Taiki Endo
ae7d884582
Update Bytes to Rust 2018 ( #274 )
2019-07-26 05:01:22 +09:00
Sean McArthur
55aa530dc1
Remove io::Cursor, and implement Buf/BufMut for slices instead ( #261 )
2019-06-07 12:31:10 -07:00
YetAnotherMinion
d8134903de
feat: remove impl IntoBuf for Cursor<Self>, impl Buf for Bytes, BytesMut, refactor iterators
2019-06-06 16:59:44 -07:00
Dan Burkert
7ed78cef47
Fix index-oob panic in Take::bytes ( #138 )
...
The panic happens when `inner.bytes()` returns a slice smaller than the
limit.
2017-06-27 11:23:29 -07:00