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

pub fn maybe_walk_ty<'tcx, F>(ty_root: &'tcx TyS<'tcx>, f: F)

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.