Trait aopt::opt::OptParser

source ·
pub trait OptParser {
    type Output;
    type Error: Into<Error>;

    // Required method
    fn parse_opt(&self, pattern: &str) -> Result<Self::Output, Self::Error>;
}
Expand description

Option parser using for parsing option constructor string.

Required Associated Types§

Required Methods§

source

fn parse_opt(&self, pattern: &str) -> Result<Self::Output, Self::Error>

Implementors§

source§

impl OptParser for StrParser

source§

impl<P, C, V> OptParser for OptSet<P, C, V>

§

type Output = <P as OptParser>::Output

§

type Error = <P as OptParser>::Error

source§

impl<Set, Inv, Ser> OptParser for HCOptSet<Set, Inv, Ser>
where Set: OptParser,

§

type Output = <Set as OptParser>::Output

§

type Error = <Set as OptParser>::Error