[][src]Function syntax::mut_visit::visit_clobber

pub fn visit_clobber<T, F>(t: &mut T, f: F) where
    F: FnOnce(T) -> T, 
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

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.