pub struct BasicToolset { /* private fields */ }Expand description
A simple toolset that wraps a static list of tools with optional filtering.
Implementations§
Source§impl BasicToolset
impl BasicToolset
Sourcepub fn new(name: impl Into<String>, tools: Vec<Arc<dyn Tool>>) -> Self
pub fn new(name: impl Into<String>, tools: Vec<Arc<dyn Tool>>) -> Self
Create a new BasicToolset with the given name and tools.
Sourcepub fn with_predicate(self, predicate: ToolPredicate) -> Self
pub fn with_predicate(self, predicate: ToolPredicate) -> Self
Set a predicate to filter which tools are returned.
Trait Implementations§
Source§impl Toolset for BasicToolset
impl Toolset for BasicToolset
Auto Trait Implementations§
impl Freeze for BasicToolset
impl !RefUnwindSafe for BasicToolset
impl Send for BasicToolset
impl Sync for BasicToolset
impl Unpin for BasicToolset
impl UnsafeUnpin for BasicToolset
impl !UnwindSafe for BasicToolset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more