Skip to main content

tract_model_parse_fact

Function tract_model_parse_fact 

Source
pub unsafe extern "C" fn tract_model_parse_fact(
    model: *mut TractModel,
    spec: *const c_char,
    fact: *mut *mut TractFact,
) -> TRACT_RESULT
Expand description

Parse a fact specification string into an Fact.

The returned fact must be free with tract_fact_destroy.