Trait rustc_trans::middle::ty_fold::TypeFoldableUnstable [-] [+] [src]

pub trait TypeFoldable<'tcx>: Repr<'tcx> + Clone {
    fn fold_with<F>(&self, folder: &mut F) -> Self where F: TypeFolder<'tcx>;
}

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

Required Methods

fn fold_with<F>(&self, folder: &mut F) -> Self where F: TypeFolder<'tcx>

Implementors