Struct rustc_middle::mir::interpret::allocation::Relocations
source · [−]Expand description
“Relocations” stores the provenance information of pointers stored in memory.
Tuple Fields
0: SortedMap<Size, Prov>Implementations
sourceimpl<Prov> Relocations<Prov>
impl<Prov> Relocations<Prov>
Trait Implementations
sourceimpl<Prov: Clone> Clone for Relocations<Prov>
impl<Prov: Clone> Clone for Relocations<Prov>
sourcefn clone(&self) -> Relocations<Prov>
fn clone(&self) -> Relocations<Prov>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<Prov: Debug> Debug for Relocations<Prov>
impl<Prov: Debug> Debug for Relocations<Prov>
sourceimpl<'tcx, Prov, __D: TyDecoder<I = TyCtxt<'tcx>>> Decodable<__D> for Relocations<Prov> where
Prov: Decodable<__D>,
impl<'tcx, Prov, __D: TyDecoder<I = TyCtxt<'tcx>>> Decodable<__D> for Relocations<Prov> where
Prov: Decodable<__D>,
sourceimpl<Prov> Deref for Relocations<Prov>
impl<Prov> Deref for Relocations<Prov>
sourceimpl<'tcx, Prov, __E: TyEncoder<I = TyCtxt<'tcx>>> Encodable<__E> for Relocations<Prov> where
Prov: Encodable<__E>,
impl<'tcx, Prov, __E: TyEncoder<I = TyCtxt<'tcx>>> Encodable<__E> for Relocations<Prov> where
Prov: Encodable<__E>,
sourceimpl<Prov: Hash> Hash for Relocations<Prov>
impl<Prov: Hash> Hash for Relocations<Prov>
sourceimpl<'a, Prov> HashStable<StableHashingContext<'a>> for Relocations<Prov> where
Prov: HashStable<StableHashingContext<'a>>,
impl<'a, Prov> HashStable<StableHashingContext<'a>> for Relocations<Prov> where
Prov: HashStable<StableHashingContext<'a>>,
fn hash_stable(
&self,
hcx: &mut StableHashingContext<'a>,
hasher: &mut StableHasher
)
sourceimpl<Prov: Ord> Ord for Relocations<Prov>
impl<Prov: Ord> Ord for Relocations<Prov>
sourcefn cmp(&self, other: &Relocations<Prov>) -> Ordering
fn cmp(&self, other: &Relocations<Prov>) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<Prov: PartialEq> PartialEq<Relocations<Prov>> for Relocations<Prov>
impl<Prov: PartialEq> PartialEq<Relocations<Prov>> for Relocations<Prov>
sourcefn eq(&self, other: &Relocations<Prov>) -> bool
fn eq(&self, other: &Relocations<Prov>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &Relocations<Prov>) -> bool
fn ne(&self, other: &Relocations<Prov>) -> bool
This method tests for !=.
sourceimpl<Prov: PartialOrd> PartialOrd<Relocations<Prov>> for Relocations<Prov>
impl<Prov: PartialOrd> PartialOrd<Relocations<Prov>> for Relocations<Prov>
sourcefn partial_cmp(&self, other: &Relocations<Prov>) -> Option<Ordering>
fn partial_cmp(&self, other: &Relocations<Prov>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
impl<Prov: Eq> Eq for Relocations<Prov>
impl<Prov> StructuralEq for Relocations<Prov>
impl<Prov> StructuralPartialEq for Relocations<Prov>
Auto Trait Implementations
impl<Prov> RefUnwindSafe for Relocations<Prov> where
Prov: RefUnwindSafe,
impl<Prov> Send for Relocations<Prov> where
Prov: Send,
impl<Prov> Sync for Relocations<Prov> where
Prov: Sync,
impl<Prov> Unpin for Relocations<Prov> where
Prov: Unpin,
impl<Prov> UnwindSafe for Relocations<Prov> where
Prov: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Ctxt, T> DepNodeParams<Ctxt> for T where
Ctxt: DepContext,
T: for<'a> HashStable<StableHashingContext<'a>> + Debug,
impl<Ctxt, T> DepNodeParams<Ctxt> for T where
Ctxt: DepContext,
T: for<'a> HashStable<StableHashingContext<'a>> + Debug,
default fn fingerprint_style() -> FingerprintStyle
sourcedefault fn to_fingerprint(&self, tcx: Ctxt) -> Fingerprint
default fn to_fingerprint(&self, tcx: Ctxt) -> Fingerprint
This method turns the parameters of a DepNodeConstructor into an opaque Fingerprint to be used in DepNode. Not all DepNodeParams support being turned into a Fingerprint (they don’t need to if the corresponding DepNode is anonymous). Read more
default fn to_debug_str(&self, Ctxt) -> String
sourcedefault fn recover(Ctxt, &DepNode<<Ctxt as DepContext>::DepKind>) -> Option<T>
default fn recover(Ctxt, &DepNode<<Ctxt as DepContext>::DepKind>) -> Option<T>
This method tries to recover the query key from the given DepNode,
something which is needed when forcing DepNodes during red-green
evaluation. The query system will only call this method if
fingerprint_style() is not FingerprintStyle::Opaque.
It is always valid to return None here, in which case incremental
compilation will treat the query as having changed instead of forcing it. Read more
sourceimpl<T, R> InternIteratorElement<T, R> for T
impl<T, R> InternIteratorElement<T, R> for T
type Output = R
fn intern_with<I, F>(iter: I, f: F) -> <T as InternIteratorElement<T, R>>::Output where
I: Iterator<Item = T>,
F: FnOnce(&[T]) -> R,
sourceimpl<T> MaybeResult<T> for T
impl<T> MaybeResult<T> for T
impl<'a, T> Captures<'a> for T where
T: ?Sized,
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: 24 bytes