Function regorust::regoSetInputTerm

source ·
pub unsafe extern "C" fn regoSetInputTerm(
    rego: *mut regoInterpreter,
    contents: *const c_char,
) -> regoEnum
Expand description

Sets the current input document from the specified string.

The string should contain a single Rego data term. The value will be parsed and set as the interpreter’s input document.

If an error code is returned, more error information can be obtained by calling regoGetError.

@param rego The interpreter. @param contents The contents of the Rego data term. @return REGO_OK if successful, REGO_ERROR otherwise.