Skip to main content

value_to_wit

Function value_to_wit 

Source
pub fn value_to_wit(value: &ConfigValue) -> ConfigValue
Expand description

A ConfigValue as an arena for the guest.

Emits one node per tree node — no sharing, no dedup. A get-option-value answer is read once and dropped, so the only thing dedup would buy is a smaller copy, at the cost of a hash of every subtree on a path that is already cold.