Skip to main content

ToolRegistrar

Trait ToolRegistrar 

Source
pub trait ToolRegistrar {
    // Required method
    fn register(&mut self, tool: Box<dyn Tool>);
}
Expand description

Trait for types that can register tools.

Decouples tool registration from any concrete tool-manager implementation.

Required Methods§

Source

fn register(&mut self, tool: Box<dyn Tool>)

Implementors§