Skip to main content

from_reader

Function from_reader 

Source
pub fn from_reader<R: Read, T: DeserializeOwned>(r: R) -> Result<T, Error>
Expand description

Parse YAML from a reader into T.

§Errors

Returns an error if reading fails, if the YAML fails to parse, or if T’s Deserialize impl rejects the resulting structure.