Struct arg_combinators::Opt [−][src]
Fields
short: String
long: String
hint: String
doc: String
Trait Implementations
impl Default for Opt
[src]
impl Default for Opt
impl Arg for Opt
[src]
impl Arg for Opt
type Item = Option<String>
type Error = Never
fn update_options(&self, opts: &mut Options, notes: Notes)
[src]
fn update_options(&self, opts: &mut Options, notes: Notes)
fn name(&self) -> String
[src]
fn name(&self) -> String
fn get(&self, matches: &Matches) -> Result<Self::Item, Self::Error>
[src]
fn get(&self, matches: &Matches) -> Result<Self::Item, Self::Error>
fn parse<C: IntoIterator>(
&self,
args: C,
which_notes_to_document: WhichNotes
) -> (Result<Self::Item, TopLevelError<Self::Error>>, Usage) where
C::Item: AsRef<OsStr>,
[src]
fn parse<C: IntoIterator>(
&self,
args: C,
which_notes_to_document: WhichNotes
) -> (Result<Self::Item, TopLevelError<Self::Error>>, Usage) where
C::Item: AsRef<OsStr>,
fn parse_env(
&self,
which_notes_to_document: WhichNotes,
program_name: ProgramName
) -> (Result<Self::Item, TopLevelError<Self::Error>>, UsageWithProgramName)
[src]
fn parse_env(
&self,
which_notes_to_document: WhichNotes,
program_name: ProgramName
) -> (Result<Self::Item, TopLevelError<Self::Error>>, UsageWithProgramName)
fn parse_env_default(
&self
) -> (Result<Self::Item, TopLevelError<Self::Error>>, UsageWithProgramName)
[src]
fn parse_env_default(
&self
) -> (Result<Self::Item, TopLevelError<Self::Error>>, UsageWithProgramName)
fn map<U, F>(self, f: F) -> Map<Self, F> where
F: Fn(Self::Item) -> U,
Self: Sized,
[src]
fn map<U, F>(self, f: F) -> Map<Self, F> where
F: Fn(Self::Item) -> U,
Self: Sized,
fn try_map<U, E, F>(self, f: F) -> TryMap<Self, F> where
E: Debug,
F: Fn(Self::Item) -> Result<U, E>,
Self: Sized,
[src]
fn try_map<U, E, F>(self, f: F) -> TryMap<Self, F> where
E: Debug,
F: Fn(Self::Item) -> Result<U, E>,
Self: Sized,
fn join<B>(self, b: B) -> Join<Self, B> where
B: Arg,
Self: Sized,
[src]
fn join<B>(self, b: B) -> Join<Self, B> where
B: Arg,
Self: Sized,
fn convert<F, U, E>(self, f: F) -> Convert<Self, F> where
E: Debug + Display,
F: Fn(&Self::Item) -> Result<U, E>,
Self: Sized,
Self::Item: Clone + Debug,
[src]
fn convert<F, U, E>(self, f: F) -> Convert<Self, F> where
E: Debug + Display,
F: Fn(&Self::Item) -> Result<U, E>,
Self: Sized,
Self::Item: Clone + Debug,
fn rename(self, name: String) -> Rename<Self> where
Self: Sized,
[src]
fn rename(self, name: String) -> Rename<Self> where
Self: Sized,
fn add_note(self, note: Note) -> AddNote<Self> where
Self: Sized,
[src]
fn add_note(self, note: Note) -> AddNote<Self> where
Self: Sized,
fn set_notes_to_document(
self,
which_notes_to_document: WhichNotes
) -> SetNotesToDocument<Self> where
Self: Sized,
[src]
fn set_notes_to_document(
self,
which_notes_to_document: WhichNotes
) -> SetNotesToDocument<Self> where
Self: Sized,
fn with_help(self, help: Flag) -> WithHelp<Self> where
Self: Sized,
[src]
fn with_help(self, help: Flag) -> WithHelp<Self> where
Self: Sized,
fn with_default_help(self) -> WithHelp<Self> where
Self: Sized,
[src]
fn with_default_help(self) -> WithHelp<Self> where
Self: Sized,