Module expr

Source
Expand description

Types to represent the HCL expression sub-language.

Structs§

Array
Type representing a HCL array.
BinaryOp
An operation that applies an operator to two expressions.
Conditional
The conditional operator allows selecting from one of two expressions based on the outcome of a boolean expression.
ForCond
A filter expression. Elements for which the condition evaluates to true will be evaluated as normal, while if false the element will be skipped.
ForExpr
A for expression is a construct for constructing a collection by projecting the items from another collection.
ForIntro
The for expression introduction, containing an optional key var, value var and the collection expression that is iterated.
FuncArgs
Type representing the arguments of a function call.
FuncCall
Type representing a function call.
FuncName
Type representing a (potentially namespaced) function name.
Null
Represents a value that is null.
Object
Type representing a HCL object.
ObjectKeyMut
Allows mutable access to the surrounding Decor of an ObjectKey but not to its value.
ObjectValue
Represents an object value together with it’s assignment operator and value terminator.
Parenthesis
Represents a sub-expression wrapped in parenthesis (( <expr> )).
Splat
Represents the splat operator (*) that is used within a AttrSplat or FullSplat.
Traversal
Traverse an expression to access attributes, object keys or element indices.
UnaryOp
An operation that applies an operator to one expression.

Enums§

BinaryOperator
An operator that can be applied to two expressions.
Expression
A type representing any expression from the expression sub-language.
ObjectKey
Represents an object key.
ObjectValueAssignment
Represents the assignment operator between an object key and its value.
ObjectValueTerminator
Represents the character that terminates an object value.
TraversalOperator
The expression traversal operators that are supported by HCL.
UnaryOperator
An operator that can be applied to an expression.

Type Aliases§

IntoIter
An owning iterator over the values of an Array.
Iter
An iterator over the values of an Array.
IterMut
A mutable iterator over the values of an Array.
ObjectIntoIter
An owning iterator over the entries of an Object.
ObjectIter
An iterator over the entries of an Object.
ObjectIterMut
A mutable iterator over the entries of an Object.