pub fn with_deferred_drops<F, R>(f: F) -> Rwhere
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).