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) -> Result<Vec<Command<T>>>
Parse settings.
fn parse_line(&mut self, line: &str) -> Result<Command<T>>
Parse a single line of settings.