Trait arg_combinators::Arg[][src]

pub trait Arg {
    type Item;
    type Error: Debug + Display + Eq;
    fn update_options<O: Options>(&self, opts: &mut O);
fn get(&self, matches: &Matches) -> Result<Self::Item, Self::Error>;
fn name(&self) -> String; 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>
, { ... }
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) { ... }
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
, { ... }
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
, { ... }
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
, { ... }
fn with_help(self, help: Flag) -> WithHelp<Self>
    where
        Self: Sized
, { ... }
fn with_default_help(self) -> WithHelp<Self>
    where
        Self: Sized
, { ... }
fn valid(self) -> Valid<Self>
    where
        Self: Sized
, { ... } }

Associated Types

Required Methods

Provided Methods

Implementors