Struct arg_combinators::Flag [−][src]
pub struct Flag { /* fields omitted */ }
Methods
impl Flag
[src]
impl Flag
pub fn default_help() -> Self
[src]
pub fn default_help() -> Self
Trait Implementations
impl Default for Flag
[src]
impl Default for Flag
impl PartialEq for Flag
[src]
impl PartialEq for Flag
fn eq(&self, other: &Flag) -> bool
[src]
fn eq(&self, other: &Flag) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Flag) -> bool
[src]
fn ne(&self, other: &Flag) -> bool
This method tests for !=
.
impl Eq for Flag
[src]
impl Eq for Flag
impl Hash for Flag
[src]
impl Hash for Flag
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Arg for Flag
[src]
impl Arg for Flag
type Item = bool
type Error = Never
fn update_options<O: Options>(&self, opts: &mut O)
[src]
fn update_options<O: Options>(&self, opts: &mut O)
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 validate(&self) -> Option<Invalid>
[src]
fn validate(&self) -> Option<Invalid>
fn parse<I>(
&self,
args: I
) -> (Result<Self::Item, TopLevelError<Self::Error>>, Usage) where
I: IntoIterator,
I::Item: AsRef<OsStr>,
[src]
fn parse<I>(
&self,
args: I
) -> (Result<Self::Item, TopLevelError<Self::Error>>, Usage) where
I: IntoIterator,
I::Item: AsRef<OsStr>,
fn just_parse<I>(
&self,
args: I
) -> Result<Self::Item, TopLevelError<Self::Error>> where
I: IntoIterator,
I::Item: AsRef<OsStr>,
[src]
fn just_parse<I>(
&self,
args: I
) -> Result<Self::Item, TopLevelError<Self::Error>> where
I: IntoIterator,
I::Item: AsRef<OsStr>,
fn parse_env(
&self,
program_name: ProgramName
) -> (Result<Self::Item, TopLevelError<Self::Error>>, UsageWithProgramName)
[src]
fn parse_env(
&self,
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 + Eq,
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 + Eq,
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 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,
fn valid(self) -> Valid<Self> where
Self: Sized,
[src]
fn valid(self) -> Valid<Self> where
Self: Sized,