pub enum TraversalOperator {
AttrSplat(Decorated<Splat>),
FullSplat(Decorated<Splat>),
GetAttr(Decorated<Ident>),
Index(Expression),
LegacyIndex(Decorated<u64>),
}
Expand description
The expression traversal operators that are supported by HCL.
Variants§
AttrSplat(Decorated<Splat>)
The attribute-only splat operator supports only attribute lookups into the elements from a list, but supports an arbitrary number of them.
FullSplat(Decorated<Splat>)
The full splat operator additionally supports indexing into the elements from a list, and allows any combination of attribute access and index operations.
GetAttr(Decorated<Ident>)
The attribute access operator returns the value of a single attribute in an object value.
Index(Expression)
The index operator returns the value of a single element of a collection value based on the result of the expression.
LegacyIndex(Decorated<u64>)
The legacy index operator returns the value of a single element of a collection value.
Exists only for compatibility with the precursor language HIL. Use the Index
variant
instead.
Trait Implementations§
Source§impl Clone for TraversalOperator
impl Clone for TraversalOperator
Source§fn clone(&self) -> TraversalOperator
fn clone(&self) -> TraversalOperator
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TraversalOperator
impl Debug for TraversalOperator
Source§impl Decorate for TraversalOperator
impl Decorate for TraversalOperator
Source§impl PartialEq for TraversalOperator
impl PartialEq for TraversalOperator
Source§impl Span for TraversalOperator
impl Span for TraversalOperator
impl Eq for TraversalOperator
impl StructuralPartialEq for TraversalOperator
Auto Trait Implementations§
impl Freeze for TraversalOperator
impl RefUnwindSafe for TraversalOperator
impl Send for TraversalOperator
impl Sync for TraversalOperator
impl Unpin for TraversalOperator
impl UnwindSafe for TraversalOperator
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