[][src]Struct simon::WithHelp

pub struct WithHelp<A> { /* fields omitted */ }

Methods

impl<A> WithHelp<A> where
    A: Arg
[src]

pub fn parse_env_or_exit(self) -> A::Item[src]

Trait Implementations

impl<A> Arg for WithHelp<A> where
    A: Arg
[src]

type Item = OrHelp<A::Item>

type Error = A::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> Send for WithHelp<A> where
    A: Send

impl<A> Unpin for WithHelp<A> where
    A: Unpin

impl<A> Sync for WithHelp<A> where
    A: Sync

impl<A> UnwindSafe for WithHelp<A> where
    A: UnwindSafe

impl<A> RefUnwindSafe for WithHelp<A> where
    A: 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> 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]