pub struct QueryPlanner {
pub filter: Option<FilterExpr>,
}Expand description
QueryPlanner
Fields§
§filter: Option<FilterExpr>Implementations§
Source§impl QueryPlanner
impl QueryPlanner
Sourcepub fn new(filter: Option<&FilterExpr>) -> Self
pub fn new(filter: Option<&FilterExpr>) -> Self
Create a planner from an optional filter expression.
Sourcepub fn plan<E: EntityKind>(&self) -> QueryPlan
pub fn plan<E: EntityKind>(&self) -> QueryPlan
Generate a query plan for the given entity type.
Index plans are only produced when all equality values are indexable; otherwise the planner falls back to a scan.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryPlanner
impl RefUnwindSafe for QueryPlanner
impl Send for QueryPlanner
impl Sync for QueryPlanner
impl Unpin for QueryPlanner
impl UnwindSafe for QueryPlanner
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