pub enum Element {
Literal(Spanned<String>),
Interpolation(Interpolation),
Directive(Directive),
}Expand description
An element of an HCL template.
Variants§
Literal(Spanned<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)
An if or for directive that allows for conditional template evaluation.
Trait Implementations§
source§impl From<Interpolation> for Element
impl From<Interpolation> for Element
source§fn from(value: Interpolation) -> Self
fn from(value: 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<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more