pub struct ConvertString<A, F>where
A: Arg,{ /* private fields */ }
Trait Implementations§
Source§impl<A, F, T, E> Arg for ConvertString<A, F>
impl<A, F, T, E> Arg for ConvertString<A, F>
type Item = T
type Error = ConvertStringError<<A as Arg>::Error, E>
fn update_switches<S: Switches>(&self, switches: &mut S)
fn name(&self) -> String
fn get(self, matches: &Matches) -> Result<Self::Item, Self::Error>
fn validate(&self) -> Result<(), Invalid>
fn parse_specified_ignoring_validation<I>( self, program_name: String, args: I, ) -> ParseResult<Self::Item, Self::Error>
fn parse_specified<I>( self, program_name: String, args: I, ) -> ParseResult<Self::Item, Self::Error>
fn parse_env(self) -> ParseResult<Self::Item, Self::Error>
fn with_help(self, help_flag: Flag) -> WithHelp<Self>
fn with_help_default(self) -> WithHelp<Self>
fn option_map<F, T, U>(self, f: F) -> OptionMap<Self, F>where
F: FnOnce(T) -> U,
fn with_default<T>(self, default_value: T) -> WithDefault<Self, T>
fn with_default_lazy<F>(self, default_value_f: F) -> WithDefaultLazy<Self, F>
fn choice<O>(self, other: O) -> Choice<Self, O>
fn both<O>(self, other: O) -> Both<Self, O>where
O: Arg,
fn map<F, U>(self, f: F) -> Map<Self, F>
fn required(self) -> Required<Self>
fn convert_string<F, T, E>(self, f: F) -> ConvertString<Self, F>
fn option_convert_string<F, T, E>(self, f: F) -> OptionConvertString<Self, F>
fn vec_convert_string<F, T, E>(self, f: F) -> VecConvertString<Self, F>
fn vec_singleton(self) -> VecSingleton<Self>
fn depend<O>(self, other: O) -> Depend<Self, O>where
O: Arg,
fn some_if<T>(self, t: T) -> SomeIf<Self, T>
Auto Trait Implementations§
impl<A, F> Freeze for ConvertString<A, F>
impl<A, F> RefUnwindSafe for ConvertString<A, F>where
A: RefUnwindSafe,
F: RefUnwindSafe,
impl<A, F> Send for ConvertString<A, F>
impl<A, F> Sync for ConvertString<A, F>
impl<A, F> Unpin for ConvertString<A, F>
impl<A, F> UnwindSafe for ConvertString<A, F>where
A: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more