Function rustc_data_structures::defer
source · pub fn defer<F: FnOnce()>(f: F) -> OnDrop<F>
Expand description
Returns a structure that calls f
when dropped.
pub fn defer<F: FnOnce()>(f: F) -> OnDrop<F>
Returns a structure that calls f
when dropped.