Function clingo_sys::clingo_model_contains [] [src]

pub unsafe extern "C" fn clingo_model_contains(
    model: *const clingo_model_t,
    atom: clingo_symbol_t,
    contained: *mut bool
) -> bool

Constant time lookup to test whether an atom is in a model.

Parameters:

  • model - the target
  • atom - the atom to lookup
  • contained - whether the atom is contained

Returns whether the call was successful