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