pub struct Query { /* private fields */ }Expand description
A query for filtering tools
Implementations§
Source§impl Query
impl Query
Sourcepub fn new(criteria: QueryCriteria) -> Self
pub fn new(criteria: QueryCriteria) -> Self
Create a new query from criteria
Sourcepub fn execute(&self, tools: &[ToolDefinition]) -> Vec<ToolDefinition>
pub fn execute(&self, tools: &[ToolDefinition]) -> Vec<ToolDefinition>
Execute the query on a collection of tools
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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