[−][src]Function rustt::from_reader
pub fn from_reader<T, R>(r: R) -> Result<T, Error> where
T: DeserializeOwned,
R: Read,
Deserialize an instance of type T
from an IO stream of TT.
The content of the IO stream is deserialized directly from the stream without being buffered in memory by rustt. If you are reading from a file it is recomended to use a buffer.
Errors
If the data coming in doesnt match Type T
an error will be returned
Any IO error will lso cause an error.