mistralrs::llguidance::ffi

Function llg_new_constraint_regex

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

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