mistralrs::llguidance::ffi

Function llg_new_constraint_lark

pub extern "C" fn llg_new_constraint_lark(
    init: &LlgConstraintInit,
    lark: *const i8,
) -> *mut LlgConstraint
Expand description

Create a new constraint from a given lark grammar Always returns a non-null value. Call llg_get_error() on the result to check for errors.