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
sourceimpl From<ForDirective> for Directive
impl From<ForDirective> for Directive
sourcefn from(directive: ForDirective) -> Self
fn from(directive: ForDirective) -> Self
Converts to this type from the input type.
sourceimpl From<IfDirective> for Directive
impl From<IfDirective> for Directive
sourcefn from(directive: IfDirective) -> Self
fn from(directive: IfDirective) -> Self
Converts to this type from the input type.
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.