Function rustc::middle::ty::maybe_walk_tyUnstable [-] [+] [src]

pub fn maybe_walk_ty<'tcx, F>(ty_root: Ty<'tcx>, f: F) where F: FnMut(Ty<'tcx>) -> bool

Walks ty and any types appearing within ty, invoking the callback f on each type. If the callback returns false, then the children of the current type are ignored.

Note: prefer ty.walk() where possible.