[−][src]Module syntax::ast
⚙️ This is an internal compiler API. (rustc_private)
This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.
Re-exports
pub use GenericArgs::*; |
pub use UnsafeSource::*; |
pub use crate::util::parser::ExprPrecedence; |
Modules
| node_id_inner | Internal |
Structs
| AngleBracketedArgs | Internal A path like |
| AnonConst | Internal A constant (expression) that's not an item or associated item,
but needs its own |
| Arg | Internal An argument in a function header. |
| Arm | Internal An arm of a 'match'. |
| AttrId | Internal |
| Attribute | Internal Metadata associated with an item.
Doc-comments are promoted to attributes that have |
| BareFnTy | Internal |
| Block | Internal A Block ( |
| Crate | Internal |
| EnumDef | Internal |
| Expr | Internal An expression |
| Field | Internal |
| FieldPat | Internal A single field in a struct pattern |
| FnDecl | Internal Header (not the body) of a function declaration. |
| FnHeader | Internal A function header. |
| ForeignItem | Internal |
| ForeignMod | Internal Foreign module declaration. |
| GenericParam | Internal |
| Generics | Internal Represents lifetime, type and const parameters attached to a declaration of a function, enum, trait, etc. |
| GlobalAsm | Internal Global inline assembly. |
| Ident | Internal |
| ImplItem | Internal |
| InlineAsm | Internal Inline assembly. |
| InlineAsmOutput | Internal Inline assembly. |
| Item | Internal An item. |
| Label | Internal |
| Lifetime | Internal |
| Local | Internal Local represents a |
| Mac_ | Internal Represents a macro invocation. The |
| MacroDef | Internal |
| MetaItem | Internal A spanned compile-time attribute item. |
| MethodSig | Internal Represents a method's signature in a trait declaration, or in an implementation. |
| Mod | Internal Module declaration. |
| MutTy | Internal |
| Name | Internal A symbol is an interned or gensymed string. The use of |
| NodeId | Internal |
| ParenthesizedArgs | Internal A path like |
| Pat | Internal |
| Path | Internal A "Path" is essentially Rust's notion of a name. |
| PathSegment | Internal A segment of a path: an identifier, an optional lifetime, and a set of types. |
| PolyTraitRef | Internal |
| QSelf | Internal The explicit |
| Stmt | Internal A statement |
| StructField | Internal Field of a struct. |
| TraitItem | Internal 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 | Internal
|
| Ty | Internal |
| TypeBinding | Internal |
| UseTree | Internal A tree of paths sharing common prefixes.
Used in |
| Variant_ | Internal |
| WhereBoundPredicate | Internal A type bound. |
| WhereClause | Internal A where-clause in a definition. |
| WhereEqPredicate | Internal An equality predicate (unsupported). |
| WhereRegionPredicate | Internal A lifetime predicate. |
Enums
| AsmDialect | Internal Inline assembly dialect. |
| AttrStyle | Internal Distinguishes between |
| BinOpKind | Internal |
| BindingMode | Internal |
| BlockCheckMode | Internal |
| CaptureBy | Internal A capture clause. |
| Constness | Internal |
| CrateSugar | Internal |
| Defaultness | Internal |
| ExprKind | Internal |
| FloatTy | Internal |
| ForeignItemKind | Internal An item within an |
| FunctionRetTy | Internal |
| GenericArg | Internal |
| GenericArgs | Internal The arguments of a path segment. |
| GenericBound | Internal The AST represents all type param bounds as types.
|
| GenericParamKind | Internal |
| Guard | Internal |
| ImplItemKind | Internal |
| ImplPolarity | Internal |
| IntTy | Internal |
| IsAsync | Internal |
| IsAuto | Internal Is the trait definition an auto trait? |
| ItemKind | Internal |
| LitIntType | Internal |
| LitKind | Internal Literal kind. |
| MacDelimiter | Internal |
| MacStmtStyle | Internal |
| MetaItemKind | Internal A compile-time attribute item. |
| Movability | Internal The movability of a generator / closure literal. |
| Mutability | Internal |
| NestedMetaItem | Internal Possible values inside of compile-time attribute lists. |
| ParamKindOrd | Internal Specifies the enforced ordering for generic parameters. In the future,
if we wanted to relax this order, we could override |
| PatKind | Internal |
| RangeEnd | Internal |
| RangeLimits | Internal Limit types of a range (inclusive or exclusive) |
| RangeSyntax | Internal |
| SelfKind | Internal Alternative representation for |
| StmtKind | Internal |
| StrStyle | Internal |
| TraitBoundModifier | Internal A modifier on a bound, currently this is only used for |
| TraitItemKind | Internal |
| TraitObjectSyntax | Internal Syntax used to declare a trait object. |
| TyKind | Internal The various kinds of type recognized by the compiler. |
| UintTy | Internal |
| UnOp | Internal |
| UnsafeSource | Internal |
| Unsafety | Internal |
| UseTreeKind | Internal Part of |
| VariantData | Internal Fields and constructor ids of enum variants and structs. |
| VisibilityKind | Internal |
| WherePredicate | Internal A single predicate in a where-clause. |
Constants
| CRATE_NODE_ID | Internal
|
| DUMMY_NODE_ID | Internal 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. |
Statics
| MEM_SIZE_OF_EXPR | Internal |
Type Definitions
| BinOp | Internal |
| CrateConfig | Internal The set of |
| ExplicitSelf | Internal |
| GenericBounds | Internal |
| Lit | Internal A literal. |
| Mac | Internal |
| SpannedIdent | Internal |
| Variant | Internal |
| Visibility | Internal |