rustc_
data_
structures
1.88.0
(6b00bc388 2025-06-23)
rustc_data_structures
Function
defer
Copy item path
Source
pub fn defer<F:
FnOnce
()>(f: F) ->
OnDrop
<F>
Expand description
Returns a structure that calls
f
when dropped.