#[no_mangle]
pub unsafe extern "C" fn graph_users_count(
    graph_state: *mut GraphState
) -> FFIResult<usize, GraphError>
Expand description

Count of users in current graph state

Safety

This function is unsafe because it dereferences a raw pointer

Arguments

  • graph_state - a pointer to a graph state

Returns

  • usize - the count of users in the graph state

Errors

  • GraphError - if state fails to get users count