diff options
author | 2018-06-01 18:05:11 -0400 | |
---|---|---|
committer | 2019-06-06 16:59:44 -0700 | |
commit | d8134903de1be93227ce376e1fb640ac2acfa8c1 (patch) | |
tree | 2e1839a967b1909d557a95c681aae0247769bd2b /src/lib.rs | |
parent | 654a11c84cc1bf14130acb290cdc6111f3a1daf3 (diff) | |
download | bytes-d8134903de1be93227ce376e1fb640ac2acfa8c1.tar.gz bytes-d8134903de1be93227ce376e1fb640ac2acfa8c1.tar.zst bytes-d8134903de1be93227ce376e1fb640ac2acfa8c1.zip |
feat: remove impl IntoBuf for Cursor<Self>, impl Buf for Bytes, BytesMut, refactor iterators
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -29,12 +29,12 @@ //! buf.put(&b"hello world"[..]); //! buf.put_u16(1234); //! -//! let a = buf.take(); +//! let a = buf.split(); //! assert_eq!(a, b"hello world\x04\xD2"[..]); //! //! buf.put(&b"goodbye world"[..]); //! -//! let b = buf.take(); +//! let b = buf.split(); //! assert_eq!(b, b"goodbye world"[..]); //! //! assert_eq!(buf.capacity(), 998); @@ -80,13 +80,6 @@ pub use buf::{ BufMut, IntoBuf, }; -#[deprecated(since = "0.4.1", note = "moved to `buf` module")] -#[doc(hidden)] -pub use buf::{ - Reader, - Writer, - Take, -}; mod bytes; mod debug; |