Skip to main content

set_panic_on_alloc

Function set_panic_on_alloc 

Source
pub fn set_panic_on_alloc(panic: bool)
Expand description

Set whether to panic on hot path allocation.

When false, allocations are counted but don’t panic. Useful for collecting stats without crashing.