Expand description
Frontend representations of Rust types and related type operations.
Re-exportsΒ§
use super::predicates::resolve_for_dyn;πuse rustc_data_structures::intern::Interned;πuse rustc_middle::ty;πuse rustc_middle::ty::inherent::IntoKind;πuse rustc_span::DUMMY_SP;πuse rustc_span::def_id::DefId as RDefId;πuse crate::frontend::prelude::*;π
StructsΒ§
- AdtTy
- Alias
- This type merges the information from
[
ty::AliasTyKind] and [ty::AliasTy]. - ArrayTy
- Canonical
User Type Annotation - Reflects [
ty::CanonicalUserTypeAnnotation] - Closure
Ty - Reflects [
ty::ClosureArgs] - Coroutine
Ty - DynTrait
Ty - FnDefTy
- FnPtrTy
- Foreign
Ty - PatTy
- RawPtr
Ty - RefTy
- SliceTy
- StrTy
- TupleTy
- Ty
- Reflects [
rustc_middle::ty::Ty] - TyFnSig
- Reflects [
ty::FnSig] - Type
AndMut - Reflects [
ty::TypeAndMut] - User
Args - Reflects [
ty::UserArgs] - User
Self Ty - Reflects [
ty::UserSelfTy]
EnumsΒ§
- Alias
Kind - Reflects [
rustc_middle::ty::AliasTyKind]. - Closure
Kind - Reflects [
ty::ClosureKind] - Pattern
- TyKind
- Reflects [
ty::TyKind] - Unsizing
Metadata - The metadata to attach to the newly-unsized ptr.
- User
Type - Reflects [
ty::UserType]: this is currently disabled, and everything is printed as debug in theUserType::Todovariant. - Extern
Abi - ABI we expect to see within
extern "{abi}" - FloatTy
- IntTy
- UintTy
FunctionsΒ§
- alias_
ty_ kind_ def_ id - closure_
sig - Retrieve a closureβs signature.
- compute_
unsizing_ metadata
Type AliasesΒ§
- Poly
FnSig - Reflects [
ty::PolyFnSig]