[−][src]Function rustc_ap_rustc_ast::mut_visit::visit_clobber
pub fn visit_clobber<T, F>(t: &mut T, f: F) where
F: FnOnce(T) -> T,
Use a map-style function (FnOnce(T) -> T
) to overwrite a &mut T
. Useful
when using a flat_map_*
or filter_map_*
method within a visit_
method. Abort the program if the closure panics.