Struct gumdrop::Parser[][src]

pub struct Parser<'a, S: 'a> { /* fields omitted */ }

Parses options from a series of &str-like values.

Methods

impl<'a, S: 'a + AsRef<str>> Parser<'a, S>
[src]

Returns a new parser for the given series of arguments.

The given slice should not contain the program name as its first element.

Returns the next option or None if no options remain.

If the previous option had an explicit argument, e.g. --option=argument, which was not consumed by a call to next_arg(), an error will be returned indicating that the argument was ignored.

Returns the next argument to an option or None if none remain.

Trait Implementations

impl<'a, S: 'a> Clone for Parser<'a, S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a, S> Send for Parser<'a, S> where
    S: Sync

impl<'a, S> Sync for Parser<'a, S> where
    S: Sync