Skip to main content

allow

Function allow 

Source
pub fn allow<T>(f: impl FnOnce() -> T) -> T
Expand description

Run f with allocation permitted, then restore the previous state.

Every call to this is a claim that the work inside is off the command path. Wrapping a command path in it to silence an abort is the one way to misuse this module, so the calls are meant to be few and easy to find.