Module typed

Module typed 

Source
Expand description

This module contains all abstract syntax tree (AST) types. All of them implement the AstNode trait.

Some of them come with extra utility methods, to quickly access some data (e.g. TwigBlock::name).

An overview of the syntax tree concept can be found at the crate level documentation.

Modules§

support

Structs§

AstChildren
Body
Error
HtmlAttribute
HtmlAttributeList
HtmlComment
HtmlDoctype
HtmlEndingTag
HtmlRawText
HtmlStartingTag
HtmlString
HtmlStringInner
HtmlTag
HtmlText
LudtwigDirectiveFileIgnore
LudtwigDirectiveIgnore
LudtwigDirectiveRuleList
Root
ShopwareIcon
ShopwareIconStyle
ShopwareReturn
ShopwareSilentFeatureCall
ShopwareSilentFeatureCallEndingBlock
ShopwareSilentFeatureCallStartingBlock
ShopwareThumbnails
ShopwareThumbnailsWith
ShopwareTwigExtends
ShopwareTwigInclude
TwigAccessor
TwigApply
TwigApplyEndingBlock
TwigApplyStartingBlock
TwigArguments
TwigArrowFunction
TwigAssignment
TwigAutoescape
TwigAutoescapeEndingBlock
TwigAutoescapeStartingBlock
TwigBinaryExpression
TwigBlock
TwigCache
TwigCacheEndingBlock
TwigCacheStartingBlock
TwigCacheTTL
TwigCacheTags
TwigComment
TwigComponent
TwigComponentEndingBlock
TwigComponentStartingBlock
TwigConditionalExpression
TwigDeprecated
TwigDo
TwigElseBlock
TwigElseIfBlock
TwigEmbed
TwigEmbedEndingBlock
TwigEmbedStartingBlock
TwigEndForBlock
TwigEndIfBlock
TwigEndSetBlock
TwigEndingBlock
TwigExpression
TwigExtends
TwigFilter
TwigFlush
TwigFor
TwigForBlock
TwigForElseBlock
TwigFrom
TwigFunctionCall
TwigIf
TwigIfBlock
TwigImport
TwigInclude
TwigIncludeWith
TwigIndex
TwigIndexLookup
TwigIndexRange
TwigLiteralArray
TwigLiteralArrayInner
TwigLiteralBoolean
TwigLiteralHash
TwigLiteralHashItems
TwigLiteralHashKey
TwigLiteralHashPair
TwigLiteralHashValue
TwigLiteralName
TwigLiteralNull
TwigLiteralNumber
TwigLiteralString
TwigLiteralStringInner
TwigLiteralStringInterpolation
TwigMacro
TwigMacroEndingBlock
TwigMacroStartingBlock
TwigNamedArgument
TwigOperand
TwigOverride
TwigParenthesesExpression
TwigPropDeclaration
TwigProps
TwigSandbox
TwigSandboxEndingBlock
TwigSandboxStartingBlock
TwigSet
TwigSetBlock
TwigStartingBlock
TwigTrans
TwigTransEndingBlock
TwigTransStartingBlock
TwigUnaryExpression
TwigUse
TwigVar
TwigVerbatim
TwigVerbatimEndingBlock
TwigVerbatimStartingBlock
TwigWith
TwigWithEndingBlock
TwigWithStartingBlock

Traits§

AstNode
The main trait to go from untyped SyntaxNode to a typed AST. The conversion itself has zero runtime cost: AST and syntax nodes have exactly the same representation: a pointer to the tree root and a pointer to the node itself.