aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorGravatar YetAnotherMinion <yam@thinkalexandria.com> 2018-06-01 18:05:11 -0400
committerGravatar Sean McArthur <sean@seanmonstar.com> 2019-06-06 16:59:44 -0700
commitd8134903de1be93227ce376e1fb640ac2acfa8c1 (patch)
tree2e1839a967b1909d557a95c681aae0247769bd2b /src/lib.rs
parent654a11c84cc1bf14130acb290cdc6111f3a1daf3 (diff)
downloadbytes-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.rs11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 04dae76..f942ad7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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;