pub trait CodeTool {
type Query;
type Output;
// Required method
fn search(&self, _query: Self::Query) -> Result<Self::Output, ToolError>;
}Expand description
A generic interface that concrete tools may adopt.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".