Skip to main content

Module ty

Module ty 

Source
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
CanonicalUserTypeAnnotation
Reflects [ty::CanonicalUserTypeAnnotation]
ClosureTy
Reflects [ty::ClosureArgs]
CoroutineTy
DynTraitTy
FnDefTy
FnPtrTy
ForeignTy
PatTy
RawPtrTy
RefTy
SliceTy
StrTy
TupleTy
Ty
Reflects [rustc_middle::ty::Ty]
TyFnSig
Reflects [ty::FnSig]
TypeAndMut
Reflects [ty::TypeAndMut]
UserArgs
Reflects [ty::UserArgs]
UserSelfTy
Reflects [ty::UserSelfTy]

EnumsΒ§

AliasKind
Reflects [rustc_middle::ty::AliasTyKind].
ClosureKind
Reflects [ty::ClosureKind]
Pattern
TyKind
Reflects [ty::TyKind]
UnsizingMetadata
The metadata to attach to the newly-unsized ptr.
UserType
Reflects [ty::UserType]: this is currently disabled, and everything is printed as debug in the UserType::Todo variant.
ExternAbi
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Β§

PolyFnSig
Reflects [ty::PolyFnSig]