Skip to main content

Module res

Module res 

Source
Expand description

Utilities for node resolution.

Re-exportsยง

use rustc_attr_ir::lang_items::LangItem; ๐Ÿ”’
use rustc_hir::def::DefKind; ๐Ÿ”’
use rustc_hir::def::Res; ๐Ÿ”’
use rustc_hir::def_id::DefId; ๐Ÿ”’
use rustc_hir as hir; ๐Ÿ”’
use rustc_hir::Expr; ๐Ÿ”’
use rustc_hir::ExprKind; ๐Ÿ”’
use rustc_hir::HirId; ๐Ÿ”’
use rustc_hir::Pat; ๐Ÿ”’
use rustc_hir::PatExpr; ๐Ÿ”’
use rustc_hir::PatExprKind; ๐Ÿ”’
use rustc_hir::PatKind; ๐Ÿ”’
use rustc_hir::Path; ๐Ÿ”’
use rustc_hir::PathSegment; ๐Ÿ”’
use rustc_hir::QPath; ๐Ÿ”’
use rustc_hir::TyKind; ๐Ÿ”’
use rustc_lint::LateContext; ๐Ÿ”’
use rustc_middle::ty::layout::HasTyCtxt; ๐Ÿ”’
use rustc_middle::ty::AdtDef; ๐Ÿ”’
use rustc_middle::ty::AdtKind; ๐Ÿ”’
use rustc_middle::ty::Binder; ๐Ÿ”’
use rustc_middle::ty::EarlyBinder; ๐Ÿ”’
use rustc_middle::ty::Ty; ๐Ÿ”’
use rustc_middle::ty::TypeckResults; ๐Ÿ”’
use rustc_span::Ident; ๐Ÿ”’
use rustc_span::Symbol; ๐Ÿ”’

Traitsยง

HasHirId
Either a HirId or a type which can be identified by one.
MaybeDef
A type which may either contain a DefId or be referred to by a DefId.
MaybeQPath
A HIR node which might be a QPath.
MaybeResPath
A HIR node which might be a QPath::Resolved.
MaybeTypeckRes
Either a [TypeckResults] or a type that may contain one.

Type Aliasesยง

DefRes ๐Ÿ”’
OptResPath ๐Ÿ”’
A resolved path and the explicit Self type if there is one.
OptTyRelPath ๐Ÿ”’
QPathId ๐Ÿ”’
A QPath with the HirId of the node containing it.