cairo_native_runtime

Function cairo_native__dict_insert

source
#[no_mangle]
pub unsafe extern "C" fn cairo_native__dict_insert(
    ptr: *mut FeltDict,
    key: &[u8; 32],
    value: NonNull<c_void>,
) -> *mut c_void
Expand description

Inserts the provided key value. Returning the old one or nullptr if there was none.

ยงSafety

This function is intended to be called from MLIR, deals with pointers, and is therefore definitely unsafe to use manually.