pub struct AexprNode { /* private fields */ }
Implementations§
Source§impl AexprNode
impl AexprNode
pub fn new(node: Node) -> Self
pub fn to_aexpr<'a>(&self, arena: &'a Arena<AExpr>) -> &'a AExpr
pub fn to_expr(&self, arena: &Arena<AExpr>) -> Expr
pub fn to_field( &self, schema: &Schema, arena: &Arena<AExpr>, ) -> PolarsResult<Field>
pub fn assign(&mut self, ae: AExpr, arena: &mut Arena<AExpr>)
Trait Implementations§
Source§impl TreeWalker for AexprNode
impl TreeWalker for AexprNode
type Arena = Arena<AExpr>
fn apply_children<F: FnMut(&Self, &Self::Arena) -> PolarsResult<VisitRecursion>>( &self, op: &mut F, arena: &Self::Arena, ) -> PolarsResult<VisitRecursion>
fn map_children<F: FnMut(Self, &mut Self::Arena) -> PolarsResult<Self>>( self, op: &mut F, arena: &mut Self::Arena, ) -> PolarsResult<Self>
Source§fn visit<V: Visitor<Node = Self, Arena = Self::Arena>>(
&self,
visitor: &mut V,
arena: &Self::Arena,
) -> PolarsResult<VisitRecursion>
fn visit<V: Visitor<Node = Self, Arena = Self::Arena>>( &self, visitor: &mut V, arena: &Self::Arena, ) -> PolarsResult<VisitRecursion>
Walks all nodes in depth-first-order.
fn rewrite<R: RewritingVisitor<Node = Self, Arena = Self::Arena>>( self, rewriter: &mut R, arena: &mut Self::Arena, ) -> PolarsResult<Self>
impl Copy for AexprNode
Auto Trait Implementations§
impl Freeze for AexprNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more