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

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

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: TypeFolder<'tcx>>(&self, folder: &mut F) -> Self

Implementors