no_alloc

Attribute Macro no_alloc 

Source
#[no_alloc]
👎Deprecated since 1.0.3: Please use the alloc_counter crate instead.
Expand description

Set up the QADAPT allocator to trigger a panic if any allocations happen during calls to this function.

QADAPT will only track allocations in the current function call; if (for example) this function receives the results of an allocation in a separate thread, or defers allocations via closure/Future, those results will not trigger an error.