Module fold

Source
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