pub fn load_all_with_config(
input: &str,
config: &ParserConfig,
) -> Result<DocumentIterator>Expand description
Load all YAML documents from a string with custom security limits.
§Errors
Returns an error if the YAML syntax is invalid or the document exceeds the configured limits.
§Examples
use noyalib::{document::load_all_with_config, ParserConfig};
let cfg = ParserConfig::new();
let iter = load_all_with_config("a: 1\n---\nb: 2\n", &cfg).unwrap();
assert_eq!(iter.len(), 2);