pub trait NestedFilter<'hir> {
    type Map: Map<'hir>;

    const INTER: bool;
    const INTRA: bool;
}
Expand description

Specifies what nested things a visitor wants to visit. The most common choice is OnlyBodies, which will cause the visitor to visit fn bodies for fns that it encounters, but skip over nested item-like things.

See the comments on ItemLikeVisitor for more details on the overall visit strategy.

Associated Types

Associated Constants

Whether the visitor visits nested “item-like” things. E.g., item, impl-item.

Whether the visitor visits “intra item-like” things. E.g., function body, closure, AnonConst

Implementors