Type Alias rustc_middle::query::queries::codegen_unit::Key
source · pub type Key<'tcx> = Symbol;Aliased Type§
struct Key<'tcx>(SymbolIndex);Fields§
§0: SymbolIndexTrait Implementations§
source§impl<'a, 'tcx> Decodable<CacheDecoder<'a, 'tcx>> for Symbol
impl<'a, 'tcx> Decodable<CacheDecoder<'a, 'tcx>> for Symbol
fn decode(d: &mut CacheDecoder<'a, 'tcx>) -> Self
source§impl<'a, 'tcx> Encodable<CacheEncoder<'a, 'tcx>> for Symbol
impl<'a, 'tcx> Encodable<CacheEncoder<'a, 'tcx>> for Symbol
fn encode(&self, s: &mut CacheEncoder<'a, 'tcx>)
source§impl Key for Symbol
impl Key for Symbol
type CacheSelector = DefaultCacheSelector<Symbol>
source§fn default_span(&self, _tcx: TyCtxt<'_>) -> Span
fn default_span(&self, _tcx: TyCtxt<'_>) -> Span
In the event that a cycle occurs, if no explicit span has been
given for a query with key
self, what span should we use?source§fn key_as_def_id(&self) -> Option<DefId>
fn key_as_def_id(&self) -> Option<DefId>
fn ty_adt_id(&self) -> Option<DefId>
source§impl<'tcx> TypeFoldable<TyCtxt<'tcx>> for Symbol
impl<'tcx> TypeFoldable<TyCtxt<'tcx>> for Symbol
source§fn try_fold_with<F: FallibleTypeFolder<TyCtxt<'tcx>>>(
self,
_: &mut F
) -> Result<Self, F::Error>
fn try_fold_with<F: FallibleTypeFolder<TyCtxt<'tcx>>>( self, _: &mut F ) -> Result<Self, F::Error>
source§impl<'tcx> TypeVisitable<TyCtxt<'tcx>> for Symbol
impl<'tcx> TypeVisitable<TyCtxt<'tcx>> for Symbol
source§fn visit_with<F: TypeVisitor<TyCtxt<'tcx>>>(
&self,
_: &mut F
) -> ControlFlow<F::BreakTy>
fn visit_with<F: TypeVisitor<TyCtxt<'tcx>>>( &self, _: &mut F ) -> ControlFlow<F::BreakTy>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size:4 bytes