Expand description
A folder (implementer of the Fold trait) maps ASTs to ASTs
Traits§
- Fold
- Deconstructs the entire AST, and reconstructs it from scratch.
Functions§
- or_
fold_ expr_ kind - Folds an ExprKind in the default way
- or_
fold_ impl_ kind - Folds an ImplKind in the default way
- or_
fold_ item_ kind - Folds an ItemKind in the default way
- or_
fold_ literal - Folds a Literal in the default way
- or_
fold_ member_ kind - or_
fold_ meta_ kind - Folds a MetaKind in the default way
- or_
fold_ stmt_ kind - Folds a StmtKind in the default way
- or_
fold_ struct_ kind - Folds a StructKind in the default way
- or_
fold_ ty_ kind - Folds a TyKind in the default way
- or_
fold_ use_ tree