[][src]Struct simon::Both

pub struct Both<A, B> where
    A: Arg,
    B: Arg
{ /* fields omitted */ }

Trait Implementations

impl<A, B> Arg for Both<A, B> where
    A: Arg,
    B: Arg
[src]

type Item = (A::Item, B::Item)

type Error = BothError<A::Error, B::Error>

fn validate(&self) -> Result<(), Invalid>[src]

fn parse_specified_ignoring_validation<I>(
    self,
    program_name: String,
    args: I
) -> ParseResult<Self::Item, Self::Error> where
    I: IntoIterator,
    I::Item: AsRef<OsStr>, 
[src]

fn parse_specified<I>(
    self,
    program_name: String,
    args: I
) -> ParseResult<Self::Item, Self::Error> where
    I: IntoIterator,
    I::Item: AsRef<OsStr>, 
[src]

fn parse_env(self) -> ParseResult<Self::Item, Self::Error>[src]

fn with_help(self, help_flag: Flag) -> WithHelp<Self>[src]

fn with_help_default(self) -> WithHelp<Self>[src]

fn option_map<F, T, U>(self, f: F) -> OptionMap<Self, F> where
    F: FnOnce(T) -> U, 
[src]

fn with_default<T>(self, default_value: T) -> WithDefault<Self, T>[src]

fn choice<O>(self, other: O) -> Choice<Self, O> where
    O: Arg<Item = Self::Item>, 
[src]

fn both<O>(self, other: O) -> Both<Self, O> where
    O: Arg
[src]

fn map<F, U>(self, f: F) -> Map<Self, F> where
    F: FnOnce(Self::Item) -> U, 
[src]

fn required(self) -> Required<Self>[src]

fn convert_string<F, T, E>(self, f: F) -> ConvertString<Self, F> where
    F: FnOnce(&str) -> Result<T, E>, 
[src]

fn option_convert_string<F, T, E>(self, f: F) -> OptionConvertString<Self, F> where
    F: FnOnce(&str) -> Result<T, E>, 
[src]

fn vec_convert_string<F, T, E>(self, f: F) -> VecConvertString<Self, F> where
    F: FnMut(&str) -> Result<T, E>, 
[src]

fn depend<O>(self, other: O) -> Depend<Self, O> where
    O: Arg
[src]

fn some_if<T>(self, t: T) -> SomeIf<Self, T>[src]

Auto Trait Implementations

impl<A, B> Unpin for Both<A, B> where
    A: Unpin,
    B: Unpin

impl<A, B> Send for Both<A, B> where
    A: Send,
    B: Send

impl<A, B> Sync for Both<A, B> where
    A: Sync,
    B: Sync

impl<A, B> UnwindSafe for Both<A, B> where
    A: UnwindSafe,
    B: UnwindSafe

impl<A, B> RefUnwindSafe for Both<A, B> where
    A: RefUnwindSafe,
    B: RefUnwindSafe

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<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]