pub enum Directive {
If(IfDirective),
For(ForDirective),
}
Expand description
A template directive that allows for conditional template evaluation.
Variants§
If(IfDirective)
Represents a template if
directive.
For(ForDirective)
Represents a template for
directive.
Trait Implementations§
Source§impl Format for Directive
impl Format for Directive
Source§fn format<W>(&self, fmt: &mut Formatter<'_, W>) -> Result<()>where
W: Write,
fn format<W>(&self, fmt: &mut Formatter<'_, W>) -> Result<()>where
W: Write,
Formats a HCL structure using a formatter and writes the result to the provided writer. Read more
Source§impl From<ForDirective> for Directive
impl From<ForDirective> for Directive
Source§fn from(directive: ForDirective) -> Self
fn from(directive: ForDirective) -> Self
Converts to this type from the input type.
Source§impl From<IfDirective> for Directive
impl From<IfDirective> for Directive
Source§fn from(directive: IfDirective) -> Self
fn from(directive: IfDirective) -> Self
Converts to this type from the input type.
impl Eq for Directive
impl StructuralPartialEq for Directive
Auto Trait Implementations§
impl Freeze for Directive
impl RefUnwindSafe for Directive
impl Send for Directive
impl Sync for Directive
impl Unpin for Directive
impl UnwindSafe for Directive
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.