pub trait CommandParser<T> {
    // Required methods
    fn parse(s: &str) -> Result<T, Error>;
    fn parse_arg_vec(s: &[&str]) -> Result<T, Error>;
}

Required Methods§

source

fn parse(s: &str) -> Result<T, Error>

source

fn parse_arg_vec(s: &[&str]) -> Result<T, Error>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> CommandParser<T> for T
where T: CommandFactory + FromArgMatches,