#[no_mangle]
pub unsafe extern "C" fn initialize_graph_state(
    environment: *const Environment
) -> FFIResult<GraphState, GraphError>
Expand description

Initialize a graph state with the given environment

Safety

This function is unsafe because it dereferences a raw pointer

Arguments

  • environment - a pointer to an environment

Returns

  • GraphState - the pointer to the graph state

Errors

  • GraphError - if the graph state cannot be initialized