Skip to main content

pamoja_ramp_update

Function pamoja_ramp_update 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_ramp_update( ramp: *mut PamojaRamp, target: f32, ) -> f32
Expand description

Moves a ramp one step toward target and returns the new value.

§Returns

The rate-limited value, or NaN if ramp is null.

§Safety

ramp must be a live handle from pamoja_ramp_new, or null.