Skip to main content

parse_str

Function parse_str 

Source
pub fn parse_str(
    raw: &str,
    path_hint: impl AsRef<Path>,
) -> Result<Config, ConfigError>
Expand description

Parse from an in-memory string. Useful for tests and include expansion where we already have the bytes. path_hint shows up in error messages when the source isn’t an on-disk file.