should parse now
This commit is contained in:
parent
13d9e30813
commit
7fba81da1e
|
|
@ -102,8 +102,7 @@ impl From<IoError> for DecodingError {
|
||||||
/// In most cases, prefer the `decode_from` function.
|
/// In most cases, prefer the `decode_from` function.
|
||||||
///
|
///
|
||||||
/// ```rust,no_run
|
/// ```rust,no_run
|
||||||
/// let file = ...
|
/// let dr = bincode::rustc_serialize::DecoderReader::new(&mut some_reader, SizeLimit::Infinite);
|
||||||
/// let dr = bincode::rustc_serialize::DecoderReader::new(&mut file, SizeLimit::Infinite);
|
|
||||||
/// let result: T = Decodable::decode(&mut dr);
|
/// let result: T = Decodable::decode(&mut dr);
|
||||||
/// let bytes_red = dr.bytes_read();
|
/// let bytes_red = dr.bytes_read();
|
||||||
/// ```
|
/// ```
|
||||||
|
|
|
||||||
|
|
@ -156,8 +156,7 @@ pub type DeserializeResult<T> = Result<T, DeserializeError>;
|
||||||
/// In most cases, prefer the `decode_from` function.
|
/// In most cases, prefer the `decode_from` function.
|
||||||
///
|
///
|
||||||
/// ```rust,no_run
|
/// ```rust,no_run
|
||||||
/// let file = ...
|
/// let d = Deserializer::new(&mut some_reader, SizeLimit::new());
|
||||||
/// let d = Deserializer::new(&mut file, SizeLimit::new());
|
|
||||||
/// serde::Deserialize::deserialize(&mut deserializer);
|
/// serde::Deserialize::deserialize(&mut deserializer);
|
||||||
/// let bytes_read = d.bytes_read();
|
/// let bytes_read = d.bytes_read();
|
||||||
/// ```
|
/// ```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue