Function clingo_sys::clingo_ast_build
source · pub unsafe extern "C" fn clingo_ast_build(
type_: clingo_ast_type_t,
ast: *mut *mut clingo_ast_t
...
) -> bool
Expand description
! Construct an AST of the given type. ! ! @note The arguments corresponding to the given type can be inspected using “g_clingo_ast_constructors.constructors[type]”. ! ! @param[in] type the type of AST to construct ! @param[out] ast the resulting AST ! @return whether the call was successful; might set one of the following error codes: ! - ::clingo_error_bad_alloc ! - ::clingo_error_runtime if one of the arguments is incompatible with the type