pub enum Element {
Literal(String),
Interpolation(Interpolation),
Directive(Directive),
}Expand description
An element of an HCL template.
Variants§
Literal(String)
A literal sequence of characters to include in the resulting string.
Interpolation(Interpolation)
An interpolation sequence that evaluates an expression (written in the expression sub-language), and converts the result to a string value.
Directive(Directive)
A if and for directive that allows for conditional template evaluation.
Trait Implementations§
source§impl From<Interpolation> for Element
impl From<Interpolation> for Element
source§fn from(interpolation: Interpolation) -> Self
fn from(interpolation: Interpolation) -> Self
Converts to this type from the input type.
source§impl PartialEq<Element> for Element
impl PartialEq<Element> for Element
impl Eq for Element
impl StructuralEq for Element
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.