[−][src]Struct simon::WithHelp
Methods
impl<A> WithHelp<A> where
A: Arg,
[src]
A: Arg,
pub fn parse_env_or_exit(self) -> A::Item
[src]
Trait Implementations
impl<A> Arg for WithHelp<A> where
A: Arg,
[src]
A: Arg,
type Item = OrHelp<A::Item>
type Error = A::Error
fn update_switches<S: Switches>(&self, switches: &mut S)
[src]
fn name(&self) -> String
[src]
fn get(self, matches: &Matches) -> Result<Self::Item, Self::Error>
[src]
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]
self,
program_name: String,
args: I
) -> ParseResult<Self::Item, Self::Error> where
I: IntoIterator,
I::Item: AsRef<OsStr>,
fn parse_specified<I>(
self,
program_name: String,
args: I
) -> ParseResult<Self::Item, Self::Error> where
I: IntoIterator,
I::Item: AsRef<OsStr>,
[src]
self,
program_name: String,
args: I
) -> ParseResult<Self::Item, Self::Error> where
I: IntoIterator,
I::Item: AsRef<OsStr>,
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]
F: FnOnce(T) -> U,
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]
O: Arg<Item = Self::Item>,
fn both<O>(self, other: O) -> Both<Self, O> where
O: Arg,
[src]
O: Arg,
fn map<F, U>(self, f: F) -> Map<Self, F> where
F: FnOnce(Self::Item) -> U,
[src]
F: FnOnce(Self::Item) -> U,
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]
F: FnOnce(&str) -> Result<T, E>,
fn option_convert_string<F, T, E>(self, f: F) -> OptionConvertString<Self, F> where
F: FnOnce(&str) -> Result<T, E>,
[src]
F: FnOnce(&str) -> Result<T, E>,
fn vec_convert_string<F, T, E>(self, f: F) -> VecConvertString<Self, F> where
F: FnMut(&str) -> Result<T, E>,
[src]
F: FnMut(&str) -> Result<T, E>,
fn depend<O>(self, other: O) -> Depend<Self, O> where
O: Arg,
[src]
O: Arg,
fn some_if<T>(self, t: T) -> SomeIf<Self, T>
[src]
Auto Trait Implementations
impl<A> Unpin for WithHelp<A> where
A: Unpin,
A: Unpin,
impl<A> Send for WithHelp<A> where
A: Send,
A: Send,
impl<A> Sync for WithHelp<A> where
A: Sync,
A: Sync,
impl<A> UnwindSafe for WithHelp<A> where
A: UnwindSafe,
A: UnwindSafe,
impl<A> RefUnwindSafe for WithHelp<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for 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,