pub fn permit_alloc<T, F: FnOnce() -> T>(func: F) -> T
Calls the func closure. Allocations are temporarily allowed, even if this code runs inside of assert_no_alloc.
func