pub enum ConstantByteProvenance<'tcx> {
Global(ItemRef<'tcx>),
Function(FnPtrTarget<'tcx>, Ty<'tcx>),
TypeId(Ty<'tcx>),
VTable(TraitProof<'tcx>),
}Expand description
What a pointer byte in an evaluated constant points to.
Variants§
Global(ItemRef<'tcx>)
A pointer to a static.
Function(FnPtrTarget<'tcx>, Ty<'tcx>)
A pointer to a function, with the type of function pointers to it.
TypeId(Ty<'tcx>)
The TypeId of a type.
VTable(TraitProof<'tcx>)
A pointer to the vtable of this trait implementation.
Trait Implementations§
Source§impl<'tcx> Clone for ConstantByteProvenance<'tcx>
impl<'tcx> Clone for ConstantByteProvenance<'tcx>
Source§fn clone(&self) -> ConstantByteProvenance<'tcx>
fn clone(&self) -> ConstantByteProvenance<'tcx>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'tcx> Debug for ConstantByteProvenance<'tcx>
impl<'tcx> Debug for ConstantByteProvenance<'tcx>
impl<'tcx> Eq for ConstantByteProvenance<'tcx>
Source§impl<'tcx> Hash for ConstantByteProvenance<'tcx>
impl<'tcx> Hash for ConstantByteProvenance<'tcx>
Source§impl<'tcx> PartialEq for ConstantByteProvenance<'tcx>
impl<'tcx> PartialEq for ConstantByteProvenance<'tcx>
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ConstantByteProvenance<'tcx>> for AllocTarget<'tcx>
The provenance to give to the bytes of a pointer into the given allocation.
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ConstantByteProvenance<'tcx>> for AllocTarget<'tcx>
The provenance to give to the bytes of a pointer into the given allocation.
fn sinto(&self, s: &S) -> ConstantByteProvenance<'tcx>
impl<'tcx> StructuralPartialEq for ConstantByteProvenance<'tcx>
Auto Trait Implementations§
impl<'tcx> DynSend for ConstantByteProvenance<'tcx>
impl<'tcx> DynSync for ConstantByteProvenance<'tcx>
impl<'tcx> Freeze for ConstantByteProvenance<'tcx>
impl<'tcx> RefUnwindSafe for ConstantByteProvenance<'tcx>
impl<'tcx> Send for ConstantByteProvenance<'tcx>
impl<'tcx> Sync for ConstantByteProvenance<'tcx>
impl<'tcx> Unpin for ConstantByteProvenance<'tcx>
impl<'tcx> UnsafeUnpin for ConstantByteProvenance<'tcx>
impl<'tcx> UnwindSafe for ConstantByteProvenance<'tcx>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Dedup for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> HashConsable for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more