pub struct StaticToolset { /* private fields */ }Expand description
A simple toolset backed by a fixed list of tools.
Implementations§
Source§impl StaticToolset
impl StaticToolset
Sourcepub fn new(tools: Vec<Arc<dyn ToolFunction>>) -> Self
pub fn new(tools: Vec<Arc<dyn ToolFunction>>) -> Self
Create a new static toolset from a list of tools.
Sourcepub fn filter_by_name(&self, names: &[&str]) -> Self
pub fn filter_by_name(&self, names: &[&str]) -> Self
Create a new toolset containing only tools whose names are in names.
Trait Implementations§
Source§impl Toolset for StaticToolset
impl Toolset for StaticToolset
Auto Trait Implementations§
impl Freeze for StaticToolset
impl !RefUnwindSafe for StaticToolset
impl Send for StaticToolset
impl Sync for StaticToolset
impl Unpin for StaticToolset
impl UnsafeUnpin for StaticToolset
impl !UnwindSafe for StaticToolset
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