Skip to main content

parse_config_text

Function parse_config_text 

Source
pub fn parse_config_text<T: DeserializeOwned>(content: &str) -> Result<T, Error>
Expand description

A config file’s text as T: JSONC (comments and trailing commas allowed), with or without a byte-order mark. What read_config_file parses, so a caller can check bytes it holds the same way.