Function rustc_lint::middle::ty::maybe_walk_tyUnstable
[-] [+]
[src]
pub fn maybe_walk_ty<'tcx, F>(ty_root: &'tcx TyS<'tcx>, f: F) where F: FnMut(&'tcx TyS<'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.