public but hidden read types

This commit is contained in:
Ty Overby 2018-02-07 20:13:26 -08:00
parent 3c5b38097f
commit 24b007e194
2 changed files with 5 additions and 1 deletions

View File

@ -22,11 +22,15 @@ pub trait BincodeRead<'storage>: io::Read {
} }
/// A BincodeRead implementation for byte slices /// A BincodeRead implementation for byte slices
/// NOT A PART OF THE STABLE PUBLIC API
#[doc(hidden)]
pub struct SliceReader<'storage> { pub struct SliceReader<'storage> {
slice: &'storage [u8], slice: &'storage [u8],
} }
/// A BincodeRead implementation for io::Readers /// A BincodeRead implementation for io::Readers
/// NOT A PART OF THE STABLE PUBLIC API
#[doc(hidden)]
pub struct IoReader<R> { pub struct IoReader<R> {
reader: R, reader: R,
temp_buffer: Vec<u8>, temp_buffer: Vec<u8>,

View File

@ -35,7 +35,7 @@ mod internal;
pub use error::{Error, ErrorKind, Result}; pub use error::{Error, ErrorKind, Result};
pub use config::Config; 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 /// An object that implements this trait can be passed a
/// serde::Deserializer without knowing its concrete type. /// serde::Deserializer without knowing its concrete type.