[−][src]Function alloc_counter::guard_fn
pub fn guard_fn<F, R>(mode: AllocMode, f: F) -> R where
F: FnOnce() -> R,
Apply the allocation mode against a function/closure. Panicking if any allocations,
reallocations or deallocations occur. (Use guard_future
for futures)