Function mupdf_sys::fz_find_item

source ·
pub unsafe extern "C" fn fz_find_item(
    ctx: *mut fz_context,
    drop: fz_store_drop_fn,
    key: *mut c_void,
    type_: *const fz_store_type
) -> *mut c_void
Expand description

Find an item within the store.

drop: The function used to free the value (to ensure we get a value of the correct type).

key: The key used to index the item.

type: Functions used to manipulate the key.

Returns NULL for not found, otherwise returns a pointer to the value indexed by key to which a reference has been taken.