Struct argonaut::Parser [] [src]

pub struct Parser<'a> {
    // some fields omitted
}

An argument parser.

Methods

impl<'a> Parser<'a>
[src]

fn new() -> Self

Creates a new parser with the given title.

fn add(&mut self, arg: &Arg<'a>) -> Result<()String>

Attempts to add an argument to this parser.

fn parse(&self, args: &Vec<&'a str>) -> ParseResult<'a>

Attempts to parse the given arguments with this parser.

Trait Implementations

impl<'a> Debug for Parser<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.