Enum liquid_core::parser::BlockElement
source · [−]pub enum BlockElement<'a> {
Raw(Raw<'a>),
Tag(Tag<'a>),
Expression(Exp<'a>),
Invalid(InvalidLiquidToken<'a>),
}Expand description
An element that can be raw text, a tag, or an expression.
This is the result of calling next() on a TagBlock.
Variants
Raw(Raw<'a>)
Tag(Tag<'a>)
Expression(Exp<'a>)
Invalid(InvalidLiquidToken<'a>)
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for BlockElement<'a>
impl<'a> !Send for BlockElement<'a>
impl<'a> !Sync for BlockElement<'a>
impl<'a> Unpin for BlockElement<'a>
impl<'a> !UnwindSafe for BlockElement<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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