pub enum LiquidElementType {
Show 15 variants
Root,
Text,
Variable,
Block,
Comment,
IfStatement,
ForStatement,
MacroDefinition,
Tag,
Filter,
Expression,
Identifier,
Literal,
Function,
Error,
}Expand description
Element types for Liquid templates
Variants§
Root
Root element
Text
Text content
Variable
Variable expression
Block
Block statement
Comment
Comment
IfStatement
If statement
ForStatement
For loop
MacroDefinition
Macro definition
Tag
Tag statement
Filter
Filter expression
Expression
Expression
Identifier
Identifier
Literal
Literal
Function
Function call
Error
Error
Trait Implementations§
Source§impl Clone for LiquidElementType
impl Clone for LiquidElementType
Source§fn clone(&self) -> LiquidElementType
fn clone(&self) -> LiquidElementType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LiquidElementType
impl Debug for LiquidElementType
Source§impl<'de> Deserialize<'de> for LiquidElementType
impl<'de> Deserialize<'de> for LiquidElementType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ElementType for LiquidElementType
impl ElementType for LiquidElementType
Source§type Role = UniversalElementRole
type Role = UniversalElementRole
The associated role type for this element kind.
Source§fn is_role(&self, role: Self::Role) -> bool
fn is_role(&self, role: Self::Role) -> bool
Returns true if this element matches the specified language-specific role.
Source§fn is_universal(&self, role: UniversalElementRole) -> bool
fn is_universal(&self, role: UniversalElementRole) -> bool
Returns true if this element matches the specified universal role.
Source§impl From<LiquidTokenType> for LiquidElementType
impl From<LiquidTokenType> for LiquidElementType
Source§fn from(token_type: LiquidTokenType) -> Self
fn from(token_type: LiquidTokenType) -> Self
Converts to this type from the input type.
Source§impl Hash for LiquidElementType
impl Hash for LiquidElementType
Source§impl PartialEq for LiquidElementType
impl PartialEq for LiquidElementType
Source§impl Serialize for LiquidElementType
impl Serialize for LiquidElementType
impl Copy for LiquidElementType
impl Eq for LiquidElementType
impl StructuralPartialEq for LiquidElementType
Auto Trait Implementations§
impl Freeze for LiquidElementType
impl RefUnwindSafe for LiquidElementType
impl Send for LiquidElementType
impl Sync for LiquidElementType
impl Unpin for LiquidElementType
impl UnsafeUnpin for LiquidElementType
impl UnwindSafe for LiquidElementType
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