#[no_mangle]
pub unsafe extern "C" fn graph_contains_user(
    graph_state: *mut GraphState,
    user_id: *const DsnpUserId
) -> FFIResult<bool, GraphError>
Expand description

Check if a given state contains user graph

Safety

This function is unsafe because it dereferences a raw pointer

Arguments

  • graph_state - a pointer to a graph state
  • user_id - a pointer to a user id

Returns

  • bool - true if the user graph exists, false otherwise

Errors

  • GraphError - if state fails to check if user graph exists