Type Alias rustc_middle::query::queries::vtable_allocation::ProvidedValue
source · pub type ProvidedValue<'tcx> = AllocId;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§
struct ProvidedValue<'tcx>(pub NonZeroU64);Fields§
§0: NonZeroU64Trait Implementations§
source§impl<'a> HashStable<StableHashingContext<'a>> for AllocId
impl<'a> HashStable<StableHashingContext<'a>> for AllocId
fn hash_stable( &self, hcx: &mut StableHashingContext<'a>, hasher: &mut StableHasher )
source§impl IntoDiagnosticArg for AllocId
impl IntoDiagnosticArg for AllocId
fn into_diagnostic_arg(self) -> DiagnosticArgValue<'static>
source§impl Ord for AllocId
impl Ord for AllocId
source§impl PartialEq<AllocId> for AllocId
impl PartialEq<AllocId> for AllocId
source§impl PartialOrd<AllocId> for AllocId
impl PartialOrd<AllocId> for AllocId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Provenance for AllocId
impl Provenance for AllocId
source§const OFFSET_IS_ADDR: bool = false
const OFFSET_IS_ADDR: bool = false
Says whether the
offset field of Pointers with this provenance is the actual physical address. Read moresource§fn fmt(ptr: &Pointer<Self>, f: &mut Formatter<'_>) -> Result
fn fmt(ptr: &Pointer<Self>, f: &mut Formatter<'_>) -> Result
Determines how a pointer should be printed. Read more
source§fn get_alloc_id(self) -> Option<AllocId>
fn get_alloc_id(self) -> Option<AllocId>
If
OFFSET_IS_ADDR == false, provenance must always be able to
identify the allocation this ptr points to (i.e., this must return Some).
Otherwise this function is best-effort (but must agree with Machine::ptr_get_alloc).
(Identifying the offset in that allocation, however, is harder – use Memory::ptr_get_alloc for that.)source§impl<'tcx> TypeFoldable<TyCtxt<'tcx>> for AllocId
impl<'tcx> TypeFoldable<TyCtxt<'tcx>> for AllocId
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 AllocId
impl<'tcx> TypeVisitable<TyCtxt<'tcx>> for AllocId
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>
impl Copy for AllocId
impl Eq for AllocId
impl StructuralEq for AllocId
impl StructuralPartialEq for AllocId
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:8 bytes