Skip to main content

ArgumentInterpreter

Trait ArgumentInterpreter 

Source
pub trait ArgumentInterpreter: Send + Sync {
    // Required method
    fn interpret(
        &self,
        arg: &[String],
        registered_commands: &[&Command],
    ) -> Result<InvocationArgs, CMDKitError>;
}

Required Methods§

Source

fn interpret( &self, arg: &[String], registered_commands: &[&Command], ) -> Result<InvocationArgs, CMDKitError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§