Function fourleaf::de::from_stream_copy
[−]
[src]
pub fn from_stream_copy<R: Read, T: Deserialize<R, Copying>>(
stream: &mut Stream<R>,
config: &Config
) -> Result<T>
Deserialises an instance of T
from the given stream
.
Byte arrays will always be copied into new buffers independent of stream
or its underlying reader.
On success, stream
will be left positioned immediately after the value
that was read, allowing for another immediately following value to be read
in with another call to this function.