Module cl_ast::ast_visitor::fold
source · Expand description
A folder (implementer of the Fold trait) maps ASTs to ASTs
Traits§
- Deconstructs the entire AST, and reconstructs it from scratch.
Functions§
- Folds an EnumKind in the default way
- Folds an ExprKind in the default way
- Folds an ImplKind in the default way
- Folds an ItemKind in the default way
- Folds a Literal in the default way
- Folds a MetaKind in the default way
- Folds a ModuleKind in the default way
- Folds a StmtKind in the default way
- Folds a StructKind in the default way
- Folds a TyKind in the default way
- Folds a VariantKind in the default way