[−][src]Module syntax::ast
Re-exports
pub use GenericArgs::*; |
pub use UnsafeSource::*; |
pub use crate::util::parser::ExprPrecedence; |
Structs
| AngleBracketedArgs | A path like |
| AnonConst | A constant (expression) that's not an item or associated item,
but needs its own |
| Arg | An argument in a function header. |
| Arm | An arm of a 'match'. |
| AsyncArgument | |
| AttrId | |
| Attribute | Metadata associated with an item.
Doc-comments are promoted to attributes that have |
| BareFnTy | |
| Block | A Block ( |
| Crate | |
| EnumDef | |
| Expr | An expression |
| Field | |
| FieldPat | A single field in a struct pattern |
| FnDecl | Header (not the body) of a function declaration. |
| FnHeader | A function header. |
| ForeignItem | |
| ForeignMod | Foreign module declaration. |
| GenericParam | |
| Generics | Represents lifetime, type and const parameters attached to a declaration of a function, enum, trait, etc. |
| GlobalAsm | Global inline assembly. |
| Ident | |
| ImplItem | |
| InlineAsm | Inline assembly. |
| InlineAsmOutput | Inline assembly. |
| Item | An item. |
| Label | |
| Lifetime | |
| Lit | An AST literal. |
| Local | Local represents a |
| Mac_ | Represents a macro invocation. The |
| MacroDef | |
| MetaItem | A spanned compile-time attribute item. |
| MethodSig | Represents a method's signature in a trait declaration, or in an implementation. |
| Mod | Module declaration. |
| MutTy | |
| Name | A symbol is an interned or gensymed string. A gensym is a symbol that is never equal to any other symbol. E.g.: |
| NodeId | |
| ParenthesizedArgs | A path like |
| Pat | |
| Path | A "Path" is essentially Rust's notion of a name. |
| PathSegment | A segment of a path: an identifier, an optional lifetime, and a set of types. |
| PolyTraitRef | |
| QSelf | The explicit |
| Stmt | A statement |
| StructField | Field of a struct. |
| TraitItem | Represents an item declaration within a trait declaration, possibly including a default implementation. A trait item is either required (meaning it doesn't have an implementation, just a signature) or provided (meaning it has a default implementation). |
| TraitRef |
|
| Ty | |
| TypeBinding | |
| UseTree | A tree of paths sharing common prefixes.
Used in |
| Variant_ | |
| WhereBoundPredicate | A type bound. |
| WhereClause | A where-clause in a definition. |
| WhereEqPredicate | An equality predicate (unsupported). |
| WhereRegionPredicate | A lifetime predicate. |
Enums
| ArgSource | The source of an argument in a function header. |
| AsmDialect | Inline assembly dialect. |
| AttrStyle | Distinguishes between |
| AwaitOrigin | Whether an |
| BinOpKind | |
| BindingMode | |
| BlockCheckMode | |
| CaptureBy | A capture clause. |
| Constness | |
| CrateSugar | |
| Defaultness | |
| ExprKind | |
| FloatTy | |
| ForeignItemKind | An item within an |
| FunctionRetTy | |
| GenericArg | |
| GenericArgs | The arguments of a path segment. |
| GenericBound | The AST represents all type param bounds as types.
|
| GenericParamKind | |
| Guard | |
| ImplItemKind | |
| ImplPolarity | |
| IntTy | |
| IsAsync | |
| IsAuto | Is the trait definition an auto trait? |
| ItemKind | |
| LitIntType | |
| LitKind | Literal kind. |
| LocalSource | |
| MacDelimiter | |
| MacStmtStyle | |
| MetaItemKind | A compile-time attribute item. |
| Movability | The movability of a generator / closure literal. |
| Mutability | |
| NestedMetaItem | Possible values inside of compile-time attribute lists. |
| ParamKindOrd | Specifies the enforced ordering for generic parameters. In the future,
if we wanted to relax this order, we could override |
| PatKind | |
| RangeEnd | |
| RangeLimits | Limit types of a range (inclusive or exclusive) |
| RangeSyntax | |
| SelfKind | Alternative representation for |
| StmtKind | |
| StrStyle | |
| TraitBoundModifier | A modifier on a bound, currently this is only used for |
| TraitItemKind | |
| TraitObjectSyntax | Syntax used to declare a trait object. |
| TyKind | The various kinds of type recognized by the compiler. |
| UintTy | |
| UnOp | |
| UnsafeSource | |
| Unsafety | |
| UseTreeKind | Part of |
| VariantData | Fields and constructor ids of enum variants and structs. |
| VisibilityKind | |
| WherePredicate | A single predicate in a where-clause. |
Constants
| CRATE_NODE_ID |
|
| DUMMY_NODE_ID | When parsing and doing expansions, we initially give all AST nodes this AST node value. Then later, in the renumber pass, we renumber them to have small, positive ids. |
Type Definitions
| BinOp | |
| CrateConfig | The set of |
| ExplicitSelf | |
| GenericBounds | |
| Mac | |
| SpannedIdent | |
| Variant | |
| Visibility |