Skip to main content

pamoja_depletion_new

Function pamoja_depletion_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_depletion_new( threshold: f32, ) -> *mut PamojaDepletion
Expand description

Creates a depletion estimator that warns as a level approaches threshold.

§Returns

A handle the caller must release with pamoja_depletion_free.

§Safety

The returned handle must be freed exactly once.