assert_no_alloc

Function permit_alloc

Source
pub fn permit_alloc<T, F: FnOnce() -> T>(func: F) -> T
Expand description

Calls the func closure. Allocations are temporarily allowed, even if this code runs inside of assert_no_alloc.