#[no_mangle]
pub unsafe extern "C" fn graph_apply_actions(
    graph_state: *mut GraphState,
    actions: *const Action,
    actions_len: usize,
    options: *const ActionOptions
) -> FFIResult<bool, GraphError>
Expand description

Apply actions to graph state

Safety

This function is unsafe because it dereferences a raw pointer

Arguments

  • graph_state - a pointer to a graph state
  • actions - a pointer to an array of actions
  • actions_len - the length of the actions array

Returns

  • bool - true if the actions were applied, false otherwise

Errors

  • GraphError - if the actions cannot be applied to the graph state