pub struct Opt { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Arg for Opt
impl Arg for Opt
type Item = Option<String>
type Error = Never
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 Freeze for Opt
impl RefUnwindSafe for Opt
impl Send for Opt
impl Sync for Opt
impl Unpin for Opt
impl UnsafeUnpin for Opt
impl UnwindSafe for Opt
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