MapInsertFn

Type Alias MapInsertFn 

Source
pub type MapInsertFn = for<'map, 'key, 'value> unsafe fn(map: PtrMut<'map>, key: PtrMut<'key>, value: PtrMut<'value>);
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.