Walkable in rustc_ast::visit - Rust
Description: API documentation for the Rust `Walkable` trait in crate `rustc_ast`.

Skip to main content

## Walkable

# Trait Walkable

Source

    pub(crate) trait Walkable<'a, V: Visitor<'a>> {
        // Required method
        fn walk_ref(&'a self, visitor: &mut V) -> V::Result;
    }

## Required Methods§

Source

#### fn walk_ref(&'a self, visitor: &mut V) -> V::Result

## Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

## Implementors§

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for AngleBracketedArg
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for AngleBracketedArgs
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for AnonConst
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Arm
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for AsmMacro
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for AssignOpKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for AssocItemConstraint
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for AssocItemConstraintKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for AttrArgs
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for AttrItem
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for AttrItemKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for AttrKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for AttrStyle
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Attribute
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for BinOpKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for BindingMode
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Block
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for BlockCheckMode
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for BorrowKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for BoundAsyncness
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for BoundConstness
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for BoundPolarity
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for ByRef
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for CaptureBy
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Closure
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for ClosureBinder
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Const
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for ConstBlockItem
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for ConstItem
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for ConstItemRhsKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for CoroutineKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Crate
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Defaultness
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Delegation
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for DelegationMac
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for DelegationSuffixes
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for DelimArgs
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for DelimSpan
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for EiiDecl
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for EiiImpl
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for EnumDef
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for ExprField
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Extern
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for FieldDef
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for FnContract
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for FnDecl
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for FnHeader
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for FnPtrTy
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for FnRetTy
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for ForLoopKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for ForeignMod
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for FormatArgPosition
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for FormatArgs
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for FormatArgsPiece
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for FormatArgument
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for FormatArgumentKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for FormatArguments
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for FormatPlaceholder
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for GenBlockKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for GenericArg
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for GenericArgs
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for GenericBound
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for GenericParam
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for GenericParamKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Generics
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Guard
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for ImplPolarity
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for ImplRestriction
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Inline
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for InlineAsm
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for InlineAsmOperand
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for InlineAsmRegOrRegClass
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for InlineAsmSym
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for InlineAsmTemplatePiece
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for IsAuto
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Label
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Lifetime
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Local
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for LocalKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for MacCall
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for MacCallStmt
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for MacStmtStyle
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for MacroDef
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for MatchKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for MgcaDisambiguation
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for ModKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for ModSpans
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for MutRestriction
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for MutTy
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for NormalAttr
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Param
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Parens
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for ParenthesizedArgs
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Pat
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for PatField
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for PatFieldsRest
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for PatKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Path
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for PathSegment
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for PolyTraitRef
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for PreciseCapturingArg
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for QSelf
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for RangeEnd
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for RangeLimits
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for RangeSyntax
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Recovered
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for RestrictionKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Safety
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for StaticItem
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for StmtKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for StrLit
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for StrStyle
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for StructExpr
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for StructRest
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Term
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Trait
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for TraitAlias
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for TraitBoundModifiers
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for TraitObjectSyntax
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for TraitRef
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Ty
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for TyAlias
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for TyKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for TyPat
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for TyPatKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for UnOp
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for UnsafeBinderCastKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for UnsafeBinderTy
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for UnsafeSource
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for UseTree
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for UseTreeKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Variant
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for VariantData
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for Visibility
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for VisibilityKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for WhereBoundPredicate
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for WhereClause
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for WhereEqPredicate
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for WherePredicate
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for WherePredicateKind
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for WhereRegionPredicate
where __V: Visitor<'__ast>,

Source§

### impl<'__ast, __V> Walkable<'__ast, __V> for YieldKind
where __V: Visitor<'__ast>,

Source§

### impl<'a, V: Visitor<'a>> Walkable<'a, V> for Expr

Source§

### impl<'a, V: Visitor<'a>> Walkable<'a, V> for Impl

Source§

### impl<'a, V: Visitor<'a>> Walkable<'a, V> for MethodCall