Struct expr::relation::MirRelationExprVisitor[][src]

struct MirRelationExprVisitor {
    recursion_guard: RecursionGuard,
}

Fields

recursion_guard: RecursionGuard

Implementations

Contains visitor implementations.

[child, pre, post] x [fallible, infallible] x [immutable, mutable]

Constructs a new MirRelationExprVisitor using a RecursionGuard with RECURSION_LIMIT.

Applies a fallible immutable f to each expr child of type MirRelationExpr.

Applies a fallible mutable f to each expr child of type MirRelationExpr.

Applies an infallible immutable f to each expr child of type MirRelationExpr.

Applies an infallible mutable f to each expr child of type MirRelationExpr.

fn try_visit_post<'a, F, E>(
    &self,
    expr: &'a MirRelationExpr,
    f: &mut F
) -> Result<(), E> where
    F: FnMut(&'a MirRelationExpr) -> Result<(), E>,
    E: From<RecursionLimitError>, 

Post-order immutable fallible MirRelationExpr visitor for expr.

fn try_visit_mut_post<F, E>(
    &self,
    expr: &mut MirRelationExpr,
    f: &mut F
) -> Result<(), E> where
    F: FnMut(&mut MirRelationExpr) -> Result<(), E>,
    E: From<RecursionLimitError>, 

Post-order mutable fallible MirRelationExpr visitor for expr.

fn visit_post<'a, F>(&self, expr: &'a MirRelationExpr, f: &mut F) where
    F: FnMut(&'a MirRelationExpr), 

Post-order immutable infallible MirRelationExpr visitor for expr.

fn visit_mut_post<F>(&self, expr: &mut MirRelationExpr, f: &mut F) where
    F: FnMut(&mut MirRelationExpr), 

Post-order mutable infallible MirRelationExpr visitor for expr.

Pre-order immutable fallible MirRelationExpr visitor for expr.

Pre-order mutable fallible MirRelationExpr visitor for expr.

Pre-order immutable infallible MirRelationExpr visitor for expr.

Pre-order mutable infallible MirRelationExpr visitor for expr.

fn visit_pre_post<F1, F2>(
    &self,
    expr: &MirRelationExpr,
    pre: &mut F1,
    post: &mut F2
) where
    F1: FnMut(&MirRelationExpr) -> Option<Vec<&MirRelationExpr>>,
    F2: FnMut(&MirRelationExpr), 

A generalization of Self::visit_pre and Self::visit_post.

The function pre runs on a MirRelationExpr before it runs on any of the child MirRelationExprs. The function post runs on child MirRelationExprs first before the parent.

Optionally, pre can return which child MirRelationExprs, if any, should be visited (default is to visit all children).

Fallible visitor for the MirScalarExprs directly owned by this relation expression.

The f visitor should not recursively descend into owned MirRelationExprs.

Fallible mutable visitor for all MirScalarExprs in the MirRelationExpr subtree rooted at expr.

Note that this does not recurse into MirRelationExpr subtrees wrapped in MirScalarExpr nodes.

Infallible mutable visitor for the MirScalarExprs in the MirRelationExpr subtree rooted at expr.

Note that this does not recurse into MirRelationExpr subtrees within MirScalarExpr nodes.

Trait Implementations

Add checked recursion support for MirRelationExprVisitor.

Extracts a reference to the recursion guard embedded within the type.

Checks whether it is safe to recur and calls f if so. Read more

Like CheckedRecursion::checked_recur, but operates on a mutable reference to Self. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more