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.
pub trait ToolRegistrar {
// Required method
fn register(&mut self, tool: Box<dyn Tool>);
}Trait for types that can register tools.
Decouples tool registration from any concrete tool-manager implementation.