Skip to main content

defer

Function defer 

Source
pub fn defer(f: impl FnOnce()) -> impl Drop
Expand description

Defers the execution of f until the return value is dropped.