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

pub trait TypeFoldable<'tcx>: Repr<'tcx> + Clone {
    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