Skip to main content

CommandArgumentsRegistrar

Trait CommandArgumentsRegistrar 

pub trait CommandArgumentsRegistrar {
    // Required method
    fn add_command_argument(
        &mut self,
        name: &str,
        argument: Arc<dyn CommandArgumentType>,
    );
}
Expand description

Registrar operations for command argument types.

Required Methods§

fn add_command_argument( &mut self, name: &str, argument: Arc<dyn CommandArgumentType>, )

Register command argument type name with argument; mods reach it through register_command_argument.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§