Skip to main content

with_deferred_drops

Function with_deferred_drops 

Source
pub fn with_deferred_drops<F, R>(f: F) -> R
where F: FnOnce() -> R,
Expand description

Execute a function within a deferred drop context. Any calls to try_defer_drop within this context will be queued and executed when the context exits (even on panic).