Module rustc::middle::ty_fold[src]

Structs

BottomUpFolder
RegionFolder

Folds over the substructure of a type, visiting its component types and all regions that occur free within it.

Traits

TypeFoldable

The TypeFoldable trait is implemented for every type that can be folded. Basically, every type that has a corresponding method in TypeFolder.

TypeFolder

The TypeFolder trait defines the actual folding. There is a method defined for every foldable type. Each of these has a default implementation that does an "identity" fold. Within each identity fold, it should invoke foo.fold_with(self) to fold each sub-item.

Functions

super_fold_autoref
super_fold_bare_fn_ty
super_fold_closure_ty
super_fold_item_substs
super_fold_mt
super_fold_sig
super_fold_sty
super_fold_substs
super_fold_trait_ref
super_fold_trait_store
super_fold_ty