Struct polars_plan::logical_plan::visitor::ALogicalPlanNode
source · pub struct ALogicalPlanNode { /* private fields */ }
Implementations§
source§impl ALogicalPlanNode
impl ALogicalPlanNode
sourcepub fn with_context<F, T>(
node: Node,
arena: &mut Arena<ALogicalPlan>,
op: F
) -> Twhere
F: FnMut(ALogicalPlanNode) -> T,
pub fn with_context<F, T>(
node: Node,
arena: &mut Arena<ALogicalPlan>,
op: F
) -> Twhere
F: FnMut(ALogicalPlanNode) -> T,
Safe interface. Take the &mut Arena
only for the duration of op
.
pub fn node(&self) -> Node
pub fn with_arena<'a, F, T>(&self, op: F) -> T
pub fn with_arena_mut<'a, F, T>(&mut self, op: F) -> T
sourcepub fn assign(&mut self, ae: ALogicalPlan)
pub fn assign(&mut self, ae: ALogicalPlan)
Add a new ALogicalPlan
to the arena and set that node to Self
.
sourcepub fn replace(&mut self, ae: ALogicalPlan)
pub fn replace(&mut self, ae: ALogicalPlan)
Replace the current Node
with a new ALogicalPlan
.
pub fn to_alp(&self) -> &ALogicalPlan
pub fn to_alp_mut(&mut self) -> &mut ALogicalPlan
pub fn schema(&self) -> Cow<'_, SchemaRef>
sourcepub fn binary<F, T>(&self, other: Node, op: F) -> T
pub fn binary<F, T>(&self, other: Node, op: F) -> T
Take a Node
and convert it an ALogicalPlanNode
and call
F
with self
and the new created ALogicalPlanNode
Trait Implementations§
source§impl TreeWalker for ALogicalPlanNode
impl TreeWalker for ALogicalPlanNode
fn apply_children<'a>( &'a self, op: &mut dyn FnMut(&Self) -> PolarsResult<VisitRecursion> ) -> PolarsResult<VisitRecursion>
fn map_children( self, op: &mut dyn FnMut(Self) -> PolarsResult<Self> ) -> PolarsResult<Self>
source§fn visit(
&self,
visitor: &mut dyn Visitor<Node = Self>
) -> PolarsResult<VisitRecursion>
fn visit( &self, visitor: &mut dyn Visitor<Node = Self> ) -> PolarsResult<VisitRecursion>
Walks all nodes in depth-first-order.
fn rewrite( self, rewriter: &mut dyn RewritingVisitor<Node = Self> ) -> PolarsResult<Self>
Auto Trait Implementations§
impl Freeze for ALogicalPlanNode
impl !RefUnwindSafe for ALogicalPlanNode
impl !Send for ALogicalPlanNode
impl !Sync for ALogicalPlanNode
impl Unpin for ALogicalPlanNode
impl !UnwindSafe for ALogicalPlanNode
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