[][src]Struct parse_arg::ShortIter

pub struct ShortIter<'a> { /* fields omitted */ }

An iterator of short options.

See the documentation for iter_short for more details.

Methods

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

pub fn parse_remaining<T: ParseArg, I>(
    self,
    iter: I
) -> Result<T, ValueError<T::Error>> where
    I: IntoIterator,
    I::Item: Arg
[src]

Parses the remaining string of the argument.

This is used in case of -xVAL style arguments. If VAL is missing, it is pulled from iter. If that's missing too, Err(ValueError::MissingValue) is returned.

See the doc of iter_short() for more context.

While this method could take &self, consuming expresses that the iteration should end.

Trait Implementations

impl<'a> Iterator for ShortIter<'a>[src]

type Item = char

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> Unpin for ShortIter<'a>

impl<'a> Sync for ShortIter<'a>

impl<'a> Send for ShortIter<'a>

impl<'a> UnwindSafe for ShortIter<'a>

impl<'a> RefUnwindSafe for ShortIter<'a>

Blanket Implementations

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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