Function fourleaf::de::from_reader
[−]
[src]
pub fn from_reader<R: Read, T: Deserialize<R, Copying>>(
reader: R,
config: &Config
) -> Result<T>
Deserialises an instance of T
from the given reader
.
Byte arrays will be copied into new buffers independent of reader
.
This constructs a Stream
with its default properties. If different
properties are desired, construct a Stream
manually and then call one of
the from_stream_*
functions.
On success, reader
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.