Struct mg_settings::Parser
[−]
[src]
pub struct Parser<T> { /* fields omitted */ }
The config parser.
Methods
impl<T: EnumFromStr> Parser<T>
[src]
pub fn new() -> Self
[src]
Create a new parser without config.
pub fn new_with_config(config: Config) -> Self
[src]
Create a new parser with config.
pub fn parse<R: BufRead>(
&mut self,
input: R,
prefix: Option<u32>
) -> ParseResult<T>
[src]
&mut self,
input: R,
prefix: Option<u32>
) -> ParseResult<T>
Parse settings.
pub fn parse_line(&mut self, line: &str, prefix: Option<u32>) -> ParseResult<T>
[src]
Parse a single line of settings.
pub 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.