[−][src]Module rustc_hir::hir
Structs
| AnonConst | A constant (expression) that's not an item or associated item,
but needs its own |
| Arm | Represents a single arm of a |
| BareFnTy | |
| Block | A block of statements |
| Body | The body of a function, closure, or constant value. In the case of a function, the body contains not only the function body itself (which is an expression), but also the argument patterns, since those are something that the caller doesn't really care about. |
| BodyId | |
| ConstArg | |
| Crate | The top-level data structure that stores the entire contents of the crate currently being compiled. |
| CrateItem | A type representing only the top-level module. |
| Destination | |
| EnumDef | |
| Expr | An expression. |
| Field | |
| FieldPat | A single field in a struct pattern. |
| FnDecl | Represents the header (not the body) of a function declaration. |
| FnHeader | |
| FnSig | Represents a function's signature in a trait declaration, trait implementation, or a free function. |
| ForeignItem | |
| ForeignMod | |
| GenericArgs | |
| GenericParam | |
| GenericParamCount | |
| Generics | Represents lifetimes and type parameters attached to a declaration of a function, enum, trait, etc. |
| GlobalAsm | |
| ImplItem | Represents anything within an |
| ImplItemId | |
| ImplItemRef | A reference from an impl to one of its associated items. This contains the item's ID, naturally, but also the item's name and some other high-level details (like whether it is an associated type or method, and whether it is public). This allows other passes to find the impl they want without loading the ID (which means fewer edges in the incremental compilation graph). |
| InlineAsm | |
| Item | An item |
| ItemId | |
| Lifetime | |
| LlvmInlineAsm | |
| LlvmInlineAsmInner | |
| LlvmInlineAsmOutput | |
| Local | Represents a |
| MacroDef | A macro definition, in this crate or imported from another. |
| Mod | |
| ModuleItems | |
| MutTy | |
| OpaqueTy | |
| Param | Represents a parameter in a function header. |
| Pat | |
| Path | A |
| PathSegment | A segment of a path: an identifier, an optional lifetime, and a set of types. |
| PolyTraitRef | |
| Stmt | A statement. |
| StructField | |
| TraitCandidate | |
| 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). |
| TraitItemId | |
| TraitItemRef | A reference from an trait to one of its associated items. This contains the item's id, naturally, but also the item's name and some other high-level details (like whether it is an associated type or method, and whether it is public). This allows other passes to find the impl they want without loading the ID (which means fewer edges in the incremental compilation graph). |
| TraitRef | References to traits in impls. |
| Ty | |
| TypeBinding | Bind a type to an associated type (i.e., |
| Upvar | A variable captured by a closure. |
| Variant | |
| WhereBoundPredicate | A type bound (e.g., |
| WhereClause | A where-clause in a definition. |
| WhereEqPredicate | An equality predicate (e.g., |
| WhereRegionPredicate | A lifetime predicate (e.g., |
Enums
| AssocItemKind | |
| AsyncGeneratorKind | In the case of a generator created as part of an async construct, which kind of async construct caused it to be created? |
| BinOpKind | |
| BindingAnnotation | Explicit binding annotations given in the HIR for a binding. Note that this is not the final binding mode that we infer after type inference. |
| BlockCheckMode | |
| BodyOwnerKind | |
| BorrowKind | The kind of borrow in an |
| CaptureBy | A capture clause used in closures and |
| ConstContext | The kind of an item that requires const-checking. |
| Constness | |
| Defaultness | |
| ExprKind | |
| FnRetTy | |
| ForeignItemKind | An item within an |
| GeneratorKind | The type of source expression that caused this generator to be created. |
| GenericArg | |
| GenericBound | The AST represents all type param bounds as types.
|
| GenericParamKind | |
| Guard | |
| ImplItemKind | Represents various kinds of content within an |
| ImplPolarity | |
| ImplicitSelfKind | Represents what type of implicit self a function has, if any. |
| InlineAsmOperand | |
| IsAsync | |
| IsAuto | Is the trait definition an auto trait? |
| ItemKind | |
| LifetimeName | |
| LifetimeParamKind | |
| LocalSource | Hints at the original code for a let statement. |
| LoopIdError | |
| LoopSource | The loop type that yielded an |
| MatchSource | Hints at the original code for a |
| Movability | The movability of a generator / closure literal:
whether a generator contains self-references, causing it to be |
| Mutability | |
| Node | |
| OpaqueTyOrigin | From whence the opaque type came. |
| ParamName | |
| PatKind | |
| PrimTy | Not represented directly in the AST; referred to by name through a |
| QPath | Represents an optionally |
| RangeEnd | |
| StmtKind | The contents of a statement. |
| SyntheticTyParamKind | Synthetic type parameters are converted to another form during lowering; this allows us to track the original form they had, and is useful for error messages. |
| TraitBoundModifier | A modifier on a bound, currently this is only used for |
| TraitFn | Represents a trait method's body (or just argument names). |
| TraitItemKind | Represents a trait method or associated constant or type |
| TyKind | The various kinds of types recognized by the compiler. |
| TypeBindingKind | |
| UnOp | |
| UnsafeSource | |
| Unsafety | |
| UseKind | |
| VariantData | Fields and constructor IDs of enum variants and structs. |
| VisibilityKind | |
| WherePredicate | A single predicate in a where-clause. |
| YieldSource | The yield kind that caused an |
Constants
| FN_OUTPUT_NAME |
Functions
| is_range_literal | Checks if the specified expression is a built-in range literal.
(See: |
Type Definitions
| BinOp | |
| GenericBounds | |
| Lit | A literal. |
| Visibility |