mycelium_util::deferred

Function defer

Source
pub fn defer<F: FnOnce()>(f: F) -> Deferred<F>
Expand description

Defer execution of f until this scope is exited.

This is equivalent to calling Deferred::new(f). See Deferred for more details.