Type Alias rustc_middle::query::queries::representability::ProvidedValue
source · 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§
Trait Implementations§
source§impl Clone for Representability
impl Clone for Representability
source§fn clone(&self) -> Representability
fn clone(&self) -> Representability
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Representability
impl Debug for Representability
source§impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for Representability
impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for Representability
fn hash_stable( &self, __hcx: &mut StableHashingContext<'__ctx>, __hasher: &mut StableHasher )
source§impl<'tcx> Value<TyCtxt<'tcx>> for Representability
impl<'tcx> Value<TyCtxt<'tcx>> for Representability
fn from_cycle_error( tcx: TyCtxt<'tcx>, cycle: &[QueryInfo], _guar: ErrorGuaranteed ) -> Self
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 bytesInfinite
: 0 bytes