Skip to main content

Module generics

Module generics 

Source

Re-exportsยง

use std::ops::ControlFlow; ๐Ÿ”’
use rustc_ast as ast; ๐Ÿ”’
use rustc_data_structures::fx::FxHashMap; ๐Ÿ”’
use rustc_hir::def_id::DefId; ๐Ÿ”’
use rustc_macros::StableHash; ๐Ÿ”’
use rustc_macros::TyDecodable; ๐Ÿ”’
use rustc_macros::TyEncodable; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use rustc_span::Symbol; ๐Ÿ”’
use rustc_span::bug; ๐Ÿ”’
use rustc_span::kw; ๐Ÿ”’
use rustc_type_ir::TypeSuperVisitable as _; ๐Ÿ”’
use rustc_type_ir::TypeVisitable; ๐Ÿ”’
use rustc_type_ir::TypeVisitor; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use tracing::instrument; ๐Ÿ”’
use super::Clause; ๐Ÿ”’
use super::InstantiatedClauses; ๐Ÿ”’
use super::ParamConst; ๐Ÿ”’
use super::ParamTy; ๐Ÿ”’
use super::Ty; ๐Ÿ”’
use super::TyCtxt; ๐Ÿ”’
use super::Unnormalized; ๐Ÿ”’
use crate::ty; ๐Ÿ”’
use crate::ty::ClauseKind; ๐Ÿ”’
use crate::ty::EarlyBinder; ๐Ÿ”’
use crate::ty::GenericArgs; ๐Ÿ”’
use crate::ty::Region; ๐Ÿ”’
use crate::ty::RegionKind; ๐Ÿ”’
use crate::ty::TyKind; ๐Ÿ”’

Structsยง

ConstConditions
[const] bounds for a given item. This is represented using a struct much like GenericClauses, where you can either choose to only instantiate the โ€œownโ€ bounds or all of the bounds including those from the parent. This distinction is necessary for code like compare_method_clause_entailment.
GenericClauses
Bounds on generics.
GenericParamCount
GenericParamDef
Generics
Information about the formal type/lifetime parameters associated with an item or method. Analogous to hir::Generics.

Enumsยง

GenericParamDefKind