Struct mg_settings::Parser
[−]
[src]
pub struct Parser<T> { /* fields omitted */ }
The config parser.
Methods
impl<T: EnumFromStr> Parser<T>
[src]
fn new() -> Self
Create a new parser without config.
fn new_with_config(config: Config) -> Self
Create a new parser with config.
fn parse<R: BufRead>(&mut self, input: R) -> ParseResult<T>
Parse settings.
fn parse_line(&mut self, line: &str) -> ParseResult<T>
Parse a single line of settings.
fn set_include_path<P: AsRef<Path>>(&mut self, directory: P)
Set the directory where the include command will look for files to include.