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

Implementations§

source§

impl<'tcx> TraitDef

source

pub fn ancestors( &self, tcx: TyCtxt<'tcx>, of_impl: DefId ) -> Result<Ancestors<'tcx>, ErrorGuaranteed>

Trait Implementations§

source§

impl Debug for TraitDef

source§

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

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

impl<__D: Decoder> Decodable<__D> for TraitDef

source§

fn decode(__decoder: &mut __D) -> Self

source§

impl<__E: Encoder> Encodable<__E> for TraitDef

source§

fn encode(&self, __encoder: &mut __E)

source§

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

source§

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

source§

impl ParameterizedOverTcx for TraitDef

§

type Value<'tcx> = TraitDef

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