Implement FromBuf and Buf::collect

Enables collecting the contents of a `Buf` value into a relevant
concrete buffer implementation.
This commit is contained in:
Carl Lerche
2017-03-01 09:30:13 -08:00
parent fd8f716e68
commit 4f8c565111
4 changed files with 178 additions and 1 deletions
+2
View File
@@ -20,6 +20,7 @@ use std::{cmp, io, usize};
mod buf;
mod buf_mut;
mod from_buf;
mod into_buf;
mod reader;
mod source;
@@ -28,6 +29,7 @@ mod writer;
pub use self::buf::Buf;
pub use self::buf_mut::BufMut;
pub use self::from_buf::FromBuf;
pub use self::into_buf::IntoBuf;
pub use self::reader::Reader;
pub use self::source::Source;