Module context

Source
Expand description

Type context book-keeping.

Modulesยง

tls

Macrosยง

bidirectional_lang_item_map ๐Ÿ”’
direct_interners ๐Ÿ”’
nop_lift ๐Ÿ”’
nop_list_lift ๐Ÿ”’
nop_slice_lift ๐Ÿ”’
slice_interners ๐Ÿ”’
sty_debug_print ๐Ÿ”’

Structsยง

CommonConsts
CommonLifetimes
CommonTypes
CtxtInterners
CurrentGcx
This is used to get a reference to a GlobalCtxt if one is available.
DeducedParamAttrs
Parameter attributes that can only be determined by examining the body of a function instead of just its signature.
Feed
The same as TyCtxtFeed, but does not contain a TyCtxt. Use this to pass around when you have a TyCtxt elsewhere. Just an optimization to save space and not store hundreds of TyCtxtFeed in the resolver.
FreeRegionInfo
This struct contains information regarding a free parameter region, either a ReEarlyParam or ReLateParam.
GlobalCtxt
See TyCtxt for details about this type.
InternedInSet ๐Ÿ”’
TyCtxt
The central data structure of the compiler. It stores references to the various arenas and also houses the results of the various compiler queries that have been performed. See the rustc dev guide for more details.
TyCtxtFeed
This struct should only be created by create_def.

Constantsยง

NUM_PREINTERNED_FRESH_FLOAT_TYS ๐Ÿ”’
NUM_PREINTERNED_FRESH_INT_TYS ๐Ÿ”’
NUM_PREINTERNED_FRESH_TYS ๐Ÿ”’
NUM_PREINTERNED_RE_LATE_BOUNDS_I ๐Ÿ”’
NUM_PREINTERNED_RE_LATE_BOUNDS_V ๐Ÿ”’
NUM_PREINTERNED_RE_VARS ๐Ÿ”’
NUM_PREINTERNED_TY_VARS ๐Ÿ”’

Traitsยง

Lift
A trait implemented for all X<'a> types that can be safely and efficiently converted to X<'tcx> as long as they are part of the provided TyCtxt<'tcx>. This can be done, for example, for Ty<'tcx> or GenericArgsRef<'tcx> by looking them up in their respective interners.

Functionsยง

_assert_tcx_fields ๐Ÿ”’
contains_name
lang_item_to_trait_lang_item ๐Ÿ”’
provide
trait_lang_item_to_lang_item ๐Ÿ”’

Type Aliasesยง

InternedSet ๐Ÿ”’