Skip to main content

raw_from_value

Function raw_from_value 

Source
pub fn raw_from_value(v: &Value) -> RawValue
Expand description

Lower a dynamic Value into the equivalent native-backed RawValue. This is the ADAPTER bc’s conformance uses to feed the RAW path from the SAME vectors the boxed path uses (so behavior-equality is checked against run_behavior on identical data). It is a TEST/BENCH-ADAPTER that lives OFF the hot path: a real consumer never builds a Value first — it produces RawValue from its wire payload directly. The de-box win is measured against v1-native precisely because production skips this step.