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