[][src]Struct gumdrop::Parser

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]

pub fn new(args: &'a [S], style: ParsingStyle) -> 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.

pub fn next_opt(&mut self) -> Option<Opt<'a>>[src]

Returns the next option or None if no options remain.

pub fn next_arg(&mut self) -> Option<&'a str>[src]

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

Trait Implementations

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

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

impl<'a, S> Unpin for Parser<'a, S>

impl<'a, S> UnwindSafe for Parser<'a, S> where
    S: RefUnwindSafe

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

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]