Trait rustc::middle::ty_fold::TypeFoldable[src]

pub trait TypeFoldable {
    fn fold_with<F: TypeFolder>(&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>(&self, folder: &mut F) -> Self

Implementors