pub type ProvidedValue<'tcx> = Representability;
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.

Aliased Type§

enum ProvidedValue<'tcx> {
    Representable,
    Infinite,
}

Variants§

§

Representable

§

Infinite

Trait Implementations§

source§

impl Clone for Representability

source§

fn clone(&self) -> Representability

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Representability

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl EraseType for Representability

§

type Result = [u8; 1]

source§

impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for Representability

source§

fn hash_stable( &self, __hcx: &mut StableHashingContext<'__ctx>, __hasher: &mut StableHasher )

source§

impl<'tcx> Value<TyCtxt<'tcx>> for Representability

source§

fn from_cycle_error( tcx: TyCtxt<'tcx>, cycle: &[QueryInfo], _guar: ErrorGuaranteed ) -> Self

source§

impl Copy for Representability

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: 1 byte

Size for each variant:

  • Representable: 0 bytes
  • Infinite: 0 bytes