pub struct PlanBuilder { /* private fields */ }Expand description
Builder for execution plans
Implementations§
Source§impl PlanBuilder
impl PlanBuilder
Sourcepub fn add_scc(&mut self, scc: Scc) -> &mut Self
pub fn add_scc(&mut self, scc: Scc) -> &mut Self
Append a strongly connected component to the plan.
Sourcepub fn add_rule(&mut self, scc_id: u32, rule: CompiledRule) -> &mut Self
pub fn add_rule(&mut self, scc_id: u32, rule: CompiledRule) -> &mut Self
Add a compiled rule to the given SCC (by index).
Sourcepub fn add_stratum(&mut self, stratum: Stratum) -> &mut Self
pub fn add_stratum(&mut self, stratum: Stratum) -> &mut Self
Append a stratum to the plan.
Sourcepub fn build(self) -> ExecutionPlan
pub fn build(self) -> ExecutionPlan
Consume the builder and produce the final ExecutionPlan.
Trait Implementations§
Source§impl Debug for PlanBuilder
impl Debug for PlanBuilder
Source§impl Default for PlanBuilder
impl Default for PlanBuilder
Source§fn default() -> PlanBuilder
fn default() -> PlanBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PlanBuilder
impl RefUnwindSafe for PlanBuilder
impl Send for PlanBuilder
impl Sync for PlanBuilder
impl Unpin for PlanBuilder
impl UnsafeUnpin for PlanBuilder
impl UnwindSafe for PlanBuilder
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