Skip to main content

walk_map

Function walk_map 

Source
pub fn walk_map(
    key: &TypeDescriptor,
    value: &TypeDescriptor,
    entries: &[(AtomBuffer, AtomBuffer)],
) -> Result<RuntimeValue>
Expand description

Walk a Map<K, V> snapshot. Keys are projected through the key descriptor and stringified for the resulting object’s keys; values project through the value descriptor (an empty atom buffer in the value slot becomes RuntimeValue::Null, matching the way Set<T> is on-chain encoded as Map<T, Null>).