Skip to main content

hcl_to_value

Function hcl_to_value 

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

Convert an hcl::Value back into our Value.

Inverse of value_to_hcl. Numbers prefer the Value::Int fast path when hcl::Number::as_i64 is Some; otherwise Value::Number with hcl::Number::as_f64 (which always succeeds for finite numbers because hcl::Number rejects NaN / Inf at construction).