diff options
author | 2019-08-27 22:09:43 +0200 | |
---|---|---|
committer | 2019-08-27 13:09:43 -0700 | |
commit | b6cb346adfaae89bce44bfa337652e6d218d38c4 (patch) | |
tree | 0e6cb36b1db4ece480554bce0f2f0ab307013931 /src/buf/mod.rs | |
parent | 79e4b2847f27137faaf149d116a352cbeae47fd1 (diff) | |
download | bytes-b6cb346adfaae89bce44bfa337652e6d218d38c4.tar.gz bytes-b6cb346adfaae89bce44bfa337652e6d218d38c4.tar.zst bytes-b6cb346adfaae89bce44bfa337652e6d218d38c4.zip |
Remove IntoBuf/FromBuf (#288)
As consequence Buf::collect is removed as well, which is replaced with `Buf::into_bytes`. The advantage of `Buf::into_bytes` is that it can be optimized in cases where converting a `T: Buf` into a `Bytes` instance is efficient.
Diffstat (limited to 'src/buf/mod.rs')
-rw-r--r-- | src/buf/mod.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/buf/mod.rs b/src/buf/mod.rs index a127549..81e22d3 100644 --- a/src/buf/mod.rs +++ b/src/buf/mod.rs @@ -18,9 +18,7 @@ mod buf; mod buf_mut; -mod from_buf; mod chain; -mod into_buf; mod iter; mod reader; mod take; @@ -29,9 +27,7 @@ mod writer; pub use self::buf::Buf; pub use self::buf_mut::BufMut; -pub use self::from_buf::FromBuf; pub use self::chain::Chain; -pub use self::into_buf::IntoBuf; pub use self::iter::IntoIter; pub use self::reader::Reader; pub use self::take::Take; |