pub fn from_reader<R: Read, T: DeserializeOwned>(reader: R) -> Result<T>Expand description
Deserializes a property-list document from a reader, auto-detecting its format.
The reader is buffered to end of input first; decode memory is proportional to the input size.
§Errors
Everything Decoder::decode can return, including
Error::Io when the reader fails.
§Examples
let answer: bool = apple_plist::from_reader(&b"<true/>"[..])?;
assert!(answer);