mirror of https://git.sr.ht/~stygianentity/bincode
public but hidden read types
This commit is contained in:
parent
3c5b38097f
commit
24b007e194
|
|
@ -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>,
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue