pub fn parse_node(src: &str) -> Result<Option<Yaml>>Expand description
Parses a lone YAML node.
Wraps yaml_rust::YamlLoader::load_from_str to parse a single YAML node.
If this function parses a single YAML node y, it returns Ok(Some(y)). If given an empty
YAML stream, returns Ok(None). If given a stream of multiple YAML documents, returns Err.