Skip to main content

parse_str

Function parse_str 

Source
pub fn parse_str(text: &str, path: &str) -> Result<Node, ConfigError>
Expand description

Reads text as the configuration subset.

path names the file in every Origin and every error this produces — it is what the reader will look at, so it is passed rather than derived.

§Errors

ConfigError::Syntax with the line, for anything outside the subset.