pub struct DeterministicPlanExtractor { /* private fields */ }Expand description
The rule-based planner, exposed as an extractor.
This is the default: it needs no model, it is deterministic, and it is what every other implementation degrades to.
Implementations§
Source§impl DeterministicPlanExtractor
impl DeterministicPlanExtractor
Sourcepub fn new(planner: Arc<DeterministicPlanner>) -> Self
pub fn new(planner: Arc<DeterministicPlanner>) -> Self
Wrap a planner.
Trait Implementations§
Source§impl RetrievalPlanExtractor for DeterministicPlanExtractor
impl RetrievalPlanExtractor for DeterministicPlanExtractor
Source§fn extract<'life0, 'async_trait>(
&'life0 self,
context: RetrievalExtractionContext,
) -> Pin<Box<dyn Future<Output = Result<RetrievalPlan, MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn extract<'life0, 'async_trait>(
&'life0 self,
context: RetrievalExtractionContext,
) -> Pin<Box<dyn Future<Output = Result<RetrievalPlan, MemoryError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Extract a plan.
Auto Trait Implementations§
impl Freeze for DeterministicPlanExtractor
impl RefUnwindSafe for DeterministicPlanExtractor
impl Send for DeterministicPlanExtractor
impl Sync for DeterministicPlanExtractor
impl Unpin for DeterministicPlanExtractor
impl UnsafeUnpin for DeterministicPlanExtractor
impl UnwindSafe for DeterministicPlanExtractor
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