diff --git a/src/de/read.rs b/src/de/read.rs index 722cab1..3ddcee5 100644 --- a/src/de/read.rs +++ b/src/de/read.rs @@ -22,11 +22,15 @@ pub trait BincodeRead<'storage>: io::Read { } /// A BincodeRead implementation for byte slices +/// NOT A PART OF THE STABLE PUBLIC API +#[doc(hidden)] pub struct SliceReader<'storage> { slice: &'storage [u8], } /// A BincodeRead implementation for io::Readers +/// NOT A PART OF THE STABLE PUBLIC API +#[doc(hidden)] pub struct IoReader { reader: R, temp_buffer: Vec, diff --git a/src/lib.rs b/src/lib.rs index b400b5f..71f33ee 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -35,7 +35,7 @@ mod internal; pub use error::{Error, ErrorKind, Result}; pub use config::Config; -pub use de::read::BincodeRead; +pub use de::read::{BincodeRead, IoReader, SliceReader}; /// An object that implements this trait can be passed a /// serde::Deserializer without knowing its concrete type.