Expand description
This crates represents the Abstract syntax tree (AST) It is currently only a re-export of the ast module from the root, but these should eventually move here
Modules§
- ast
- control_
statements - literals
- mut_
visitor - This module defines the
AstVisitorMuttrait and its associated macros. TheAstVisitorMuttrait provides a set of methods for mutably traversing and visiting ASTs - provider
- ser
- visitor
- This module defines the
AstVisitortrait and its associated macros. TheAstVisitortrait provides a set of methods for traversing and visiting ASTs
Macros§
- try_
from - A
try_fromconvenience wrapper forAstNode, passed as theex:exprargument. Will try to return a reference to the variants inner type, specified via thet:typarameter. Converts thetry_from-Resultinto anOption - try_
from_ mut - A
try_fromconvenience wrapper forAstNode, passed as theex:exprargument. Will try to return a reference to the variants inner type, specified via thet:typarameter. Converts thetry_from-Resultinto anOption - visit_
all_ nodes_ mut