pub type ProvidedValue<'tcx> = Option<GeneratorLayout<'tcx>>;
Expand description

This type alias specifies the type returned from query providers and the type used for decoding. For regular queries this is the declared returned type V, but arena_cache will use <V as Deref>::Target instead.

Trait Implementations§

source§

impl<T> EraseType for Option<&[T]>

§

type Result = [u8; 16]

source§

impl<T> EraseType for Option<&T>

§

type Result = [u8; 8]

source§

impl EraseType for Option<(DefId, EntryFnType)>

§

type Result = [u8; 12]

source§

impl EraseType for Option<AllocatorKind>

§

type Result = [u8; 1]

source§

impl EraseType for Option<ConstStability>

§

type Result = [u8; 24]

source§

impl EraseType for Option<CrateNum>

§

type Result = [u8; 4]

source§

impl EraseType for Option<DefId>

§

type Result = [u8; 8]

source§

impl EraseType for Option<DefKind>

§

type Result = [u8; 2]

source§

impl EraseType for Option<DefaultBodyStability>

§

type Result = [u8; 20]

source§

impl EraseType for Option<DeprecationEntry>

§

type Result = [u8; 20]

source§

impl EraseType for Option<Destructor>

§

type Result = [u8; 12]

source§

impl EraseType for Option<DestructuredConstant<'_>>

§

type Result = [u8; 24]

source§

impl EraseType for Option<EarlyBinder<TraitRef<'_>>>

§

type Result = [u8; 16]

source§

impl EraseType for Option<EarlyBinder<Ty<'_>>>

§

type Result = [u8; 8]

source§

impl EraseType for Option<GeneratorKind>

§

type Result = [u8; 1]

source§

impl EraseType for Option<HirId>

§

type Result = [u8; 8]

source§

impl EraseType for Option<ImplTraitInTraitData>

§

type Result = [u8; 16]

source§

impl EraseType for Option<LocalDefId>

§

type Result = [u8; 4]

source§

impl EraseType for Option<Owner<'_>>

§

type Result = [u8; 16]

source§

impl EraseType for Option<PanicStrategy>

§

type Result = [u8; 1]

source§

impl EraseType for Option<Span>

§

type Result = [u8; 12]

source§

impl EraseType for Option<Stability>

§

type Result = [u8; 20]

source§

impl EraseType for Option<Svh>

§

type Result = [u8; 24]

source§

impl EraseType for Option<usize>

§

type Result = [u8; 16]

source§

impl Key for Option<Symbol>

§

type CacheSelector = DefaultCacheSelector<Option<Symbol>>

source§

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>

If the key is a DefId or DefId–equivalent, return that DefId. Otherwise, return None.
source§

fn ty_adt_id(&self) -> Option<DefId>

source§

impl<'tcx, T: Lift<'tcx>> Lift<'tcx> for Option<T>

§

type Lifted = Option<<T as Lift<'tcx>>::Lifted>

source§

fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>

source§

impl<'tcx> MirVisitable<'tcx> for Option<Terminator<'tcx>>

source§

fn apply(&self, location: Location, visitor: &mut dyn Visitor<'tcx>)

source§

impl<T: ParameterizedOverTcx> ParameterizedOverTcx for Option<T>

§

type Value<'tcx> = Option<<T as ParameterizedOverTcx>::Value<'tcx>>

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:136 bytes

Size for each variant:

  • None: 0 bytes
  • Some: 136 bytes