Function marked_yaml::loader::parse_yaml_with_options

source ยท
pub fn parse_yaml_with_options<S>(
    source: usize,
    yaml: S,
    options: LoaderOptions,
) -> Result<Node, LoadError>
where S: AsRef<str>,
Expand description

Parse YAML from a string and return a Node representing the content.

Takes an additional LoaderOptions struct to control the behavior of the loader.

This is the way to parse a file with a top-level sequence instead of a mapping node.

See parse_yaml for more information.