Trait tiny_cli::Parser

source ·
pub trait Parser: Sized {
    // Required method
    fn parse<'a>(
        it: &mut impl Iterator<Item = Result<&'a str, Utf8Error>>
    ) -> Result<Self, ArgParseError>;
}

Required Methods§

source

fn parse<'a>( it: &mut impl Iterator<Item = Result<&'a str, Utf8Error>> ) -> Result<Self, ArgParseError>

Attempts to construct Self from provided arguments.

Errors

Parsing errors, see ArgParseCause

Implementors§