[−][src]Struct gumdrop::Parser
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
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,