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

Parses the element in the block just as if it weren’t inside any block.

Returns the element as a str.

Trait Implementations

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.