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.
source§impl PartialEq<Directive> for Directive
impl PartialEq<Directive> for Directive
impl Eq for Directive
impl StructuralEq for Directive
impl StructuralPartialEq for Directive
Auto Trait Implementations§
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<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.