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(value: ForDirective) -> Self
fn from(value: ForDirective) -> Self
Converts to this type from the input type.
Source§impl From<IfDirective> for Directive
impl From<IfDirective> for Directive
Source§fn from(value: IfDirective) -> Self
fn from(value: 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