Skip to main content

unmarshal_value

Function unmarshal_value 

Source
pub fn unmarshal_value(
    d: Data,
    objs: &ObjectPool,
    maps: &MapPool,
    strings: &StringPool,
    structs: &[Struct],
    enums: &[EnumType],
) -> Value
Expand description

Reads a runtime Data back into a host Value, recursively for arrays, maps, structs and enums. Arrays, structs and enums live in the shared object pool; structs are surfaced as string-keyed Value::Maps using their declared field names, and an enum becomes a Value::Enum naming the variant it holds. Map keys that are not strings are skipped.