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 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<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.