CommandParser

Trait CommandParser 

Source
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>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§