Type Alias MapInsertFn

Source
pub type MapInsertFn = for<'map, 'key, 'value> unsafe fn(_: Opaque<'map>, _: Opaque<'key>, _: Opaque<'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 std::ptr::read) — they should be deallocated afterwards but NOT dropped.