#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_rule_evaluator_is_set(
rules: *const PamojaRuleEvaluator,
rule: *const c_char,
out_set: *mut bool,
) -> PamojaStatusExpand description
Reports whether a rule’s condition currently holds.
§Arguments
rules- the evaluator.rule- the rule’s name, as null-terminated UTF-8.out_set- receives whether the condition holds.
§Returns
PamojaStatus::Ok with *out_set written, or PamojaStatus::InvalidArgument if
a pointer is null or no rule has that name.
§Safety
rules must be a live handle from pamoja_rule_evaluator_from_json, or null,
rule must be a valid null-terminated UTF-8 string for the duration of the call, or
null, and out_set must be writable.