Module mun_syntax::ast[][src]

Structs

ArgList
AstChildren

An iterator over SyntaxNode children of a particular AST type.

BinExpr
BindPat
BlockExpr
BreakExpr
CallExpr
Comment
CommentIter
CommentKind
Condition
Expr
ExprStmt
FieldExpr
FunctionDef
IfExpr
LetStmt
Literal
LoopExpr
MemoryTypeSpecifier
ModuleItem
Name
NameRef
NeverType
Param
ParamList
ParenExpr
Pat
Path
PathExpr
PathSegment
PathType
PlaceholderPat
PrefixExpr
RecordField
RecordFieldDef
RecordFieldDefList
RecordFieldList
RecordLit
Rename
RetType
ReturnExpr
SourceFile
Stmt
StructDef
TupleFieldDef
TupleFieldDefList
TypeAliasDef
TypeRef
Use
UseTree
UseTreeList
Visibility
WhileExpr
Whitespace

Enums

BinOp
CommentPlacement
CommentShape
ElseBranch
ExprKind
FieldKind
LiteralKind
ModuleItemKind
PatKind
PathSegmentKind
PrefixOp
StmtKind
StructKind
StructMemoryKind

Represents the kind of memory management a struct uses.

TypeRefKind
VisibilityKind

Traits

ArgListOwner
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.

AstToken

Like an AstNode, but wraps tokens rather than interior nodes.

DefaultTypeParamOwner
DocCommentsOwner
ExternOwner
FunctionDefOwner
LoopBodyOwner
ModuleItemOwner
NameOwner
TypeAscriptionOwner
VisibilityOwner