Struct polars_plan::logical_plan::visitor::AexprNode
source · pub struct AexprNode { /* private fields */ }
Implementations§
source§impl AexprNode
impl AexprNode
sourcepub fn with_context<F, T>(node: Node, arena: &mut Arena<AExpr>, op: F) -> T
pub fn with_context<F, T>(node: Node, arena: &mut Arena<AExpr>, op: F) -> T
Safe interface. Take the &mut Arena
only for the duration of op
.
sourcepub fn with_context_and_arena<F, T>(
node: Node,
arena: &mut Arena<AExpr>,
op: F
) -> T
pub fn with_context_and_arena<F, T>( node: Node, arena: &mut Arena<AExpr>, op: F ) -> T
Safe interface. Take the &mut Arena
only for the duration of op
.
sourcepub fn with_arena<'a, F, T>(&self, op: F) -> T
pub fn with_arena<'a, F, T>(&self, op: F) -> T
Apply an operation with the underlying Arena
.
sourcepub fn with_arena_mut<'a, F, T>(&mut self, op: F) -> T
pub fn with_arena_mut<'a, F, T>(&mut self, op: F) -> T
Apply an operation with the underlying Arena
.
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 AExprNode
and call
F
with self
and the new created AExprNode
pub fn to_aexpr(&self) -> &AExpr
pub fn to_expr(&self) -> Expr
pub fn to_field(&self, schema: &Schema) -> PolarsResult<Field>
Trait Implementations§
source§impl PartialEq for AexprNode
impl PartialEq for AexprNode
source§impl TreeWalker for AexprNode
impl TreeWalker for AexprNode
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>
impl Copy for AexprNode
Auto Trait Implementations§
impl !RefUnwindSafe for AexprNode
impl !Send for AexprNode
impl !Sync for AexprNode
impl Unpin for AexprNode
impl !UnwindSafe for AexprNode
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