hcl::expr

Type Alias Object

Source
pub type Object<K, V> = VecMap<K, V>;
Expand description

The object type used in the expression sub-language.

Aliased Type§

struct Object<K, V> { /* private fields */ }

Trait Implementations§

Source§

impl<K, V> Evaluate for Object<K, V>
where K: Evaluate + Eq, K::Output: Hash + Eq, V: Evaluate,

Source§

type Output = IndexMap<<K as Evaluate>::Output, <V as Evaluate>::Output>

The type that is returned by evaluate on success.
Source§

fn evaluate(&self, ctx: &Context<'_>) -> EvalResult<Self::Output>

Recursively evaluates all HCL templates and expressions in the implementing type using the variables and functions declared in the Context. Read more
Source§

fn evaluate_in_place(&mut self, ctx: &Context<'_>) -> EvalResult<(), Errors>

Recursively tries to evaluate all nested expressions in place. Read more