#[no_mangle]
pub unsafe extern "C" fn context_reset(context: &mut Context<'_>)
Expand description
Reset the context so that it can be reused. This is useful when you want to reuse the same context for multiple matches. This will clear all the values that were added to the context, but keep the memory allocated for the context.
§Errors
This function never fails.
§Safety
Violating any of the following constraints will result in undefined behavior:
context
must be a valid pointer returned bycontext_new
.