MapInsertFn

Type Alias MapInsertFn 

Source
pub type MapInsertFn = unsafe fn(map: PtrMut, key: PtrMut, value: PtrMut);
Expand description

Insert a key-value pair into the map

§Safety

The map parameter must point to aligned, initialized memory of the correct type. key and value are moved out of (with core::ptr::read) — they should be deallocated afterwards (e.g. with core::mem::forget) but NOT dropped.