[][src]Function clingo_sys::clingo_backend_rule

pub unsafe extern "C" fn clingo_backend_rule(
    backend: *mut clingo_backend_t,
    choice: bool,
    head: *const clingo_atom_t,
    head_size: usize,
    body: *const clingo_literal_t,
    body_size: usize
) -> bool

Add a rule to the program.

@param[in] backend the target backend @param[in] choice determines if the head is a choice or a disjunction @param[in] head the head atoms @param[in] head_size the number of atoms in the head @param[in] body the body literals @param[in] body_size the number of literals in the body @return whether the call was successful; might set one of the following error codes:

  • ::clingo_error_bad_alloc