[][src]Struct rustc::mir::interpret::Relocations

pub struct Relocations<Tag = (), Id = AllocId>(SortedMap<Size, (Tag, Id)>);
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Relocations.

Methods

impl<Tag, Id> Relocations<Tag, Id>[src]

pub fn new() -> Self[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

pub fn from_presorted(r: Vec<(Size, (Tag, Id))>) -> Self[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Methods from Deref<Target = SortedMap<Size, (Tag, AllocId)>>

pub fn insert(&mut self, key: K, value: V) -> Option<V>[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

pub fn remove(&mut self, key: &K) -> Option<V>[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

pub fn get<Q>(&self, key: &Q) -> Option<&V> where
    K: Borrow<Q>,
    Q: Ord + ?Sized
[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

pub fn get_mut<Q>(&mut self, key: &Q) -> Option<&mut V> where
    K: Borrow<Q>,
    Q: Ord + ?Sized
[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

pub fn clear(&mut self)[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

pub fn iter(&self) -> Iter<(K, V)>[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Iterate over elements, sorted by key

pub fn keys(&self) -> impl ExactSizeIterator + Iterator<Item = &K>[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Iterate over the keys, sorted

pub fn values(&self) -> impl ExactSizeIterator + Iterator<Item = &V>[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Iterate over values, sorted by key

pub fn len(&self) -> usize[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

pub fn is_empty(&self) -> bool[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

pub fn range<R>(&self, range: R) -> &[(K, V)] where
    R: RangeBounds<K>, 
[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

pub fn remove_range<R>(&mut self, range: R) where
    R: RangeBounds<K>, 
[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

pub fn offset_keys<F>(&mut self, f: F) where
    F: Fn(&mut K), 
[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Mutate all keys with the given function f. This mutation must not change the sort-order of keys.

pub fn insert_presorted(&mut self, elements: Vec<(K, V)>)[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Inserts a presorted range of elements into the map. If the range can be inserted as a whole in between to existing elements of the map, this will be faster than inserting the elements individually.

It is up to the caller to make sure that the elements are sorted by key and that there are no duplicates.

pub fn contains_key<Q>(&self, key: &Q) -> bool where
    K: Borrow<Q>,
    Q: Ord + ?Sized
[src]

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Trait Implementations

impl<Tag: Clone, Id: Clone> Clone for Relocations<Tag, Id>[src]

impl<Tag: Debug, Id: Debug> Debug for Relocations<Tag, Id>[src]

impl<Tag: Decodable, Id: Decodable> Decodable for Relocations<Tag, Id>[src]

impl<Tag> Deref for Relocations<Tag>[src]

type Target = SortedMap<Size, (Tag, AllocId)>

The resulting type after dereferencing.

impl<Tag> DerefMut for Relocations<Tag>[src]

impl<Tag: Encodable, Id: Encodable> Encodable for Relocations<Tag, Id>[src]

impl<Tag: Eq, Id: Eq> Eq for Relocations<Tag, Id>[src]

impl<Tag: Hash, Id: Hash> Hash for Relocations<Tag, Id>[src]

impl<'a, Tag> HashStable<StableHashingContext<'a>> for Relocations<Tag> where
    Tag: HashStable<StableHashingContext<'a>>, 
[src]

impl<Tag: Ord, Id: Ord> Ord for Relocations<Tag, Id>[src]

impl<Tag: PartialEq, Id: PartialEq> PartialEq<Relocations<Tag, Id>> for Relocations<Tag, Id>[src]

impl<Tag: PartialOrd, Id: PartialOrd> PartialOrd<Relocations<Tag, Id>> for Relocations<Tag, Id>[src]

impl<Tag, Id> StructuralEq for Relocations<Tag, Id>[src]

impl<Tag, Id> StructuralPartialEq for Relocations<Tag, Id>[src]

Auto Trait Implementations

impl<Tag, Id> RefUnwindSafe for Relocations<Tag, Id> where
    Id: RefUnwindSafe,
    Tag: RefUnwindSafe

impl<Tag, Id> Send for Relocations<Tag, Id> where
    Id: Send,
    Tag: Send

impl<Tag, Id> Sync for Relocations<Tag, Id> where
    Id: Sync,
    Tag: Sync

impl<Tag, Id> Unpin for Relocations<Tag, Id> where
    Id: Unpin,
    Tag: Unpin

impl<Tag, Id> UnwindSafe for Relocations<Tag, Id> where
    Id: UnwindSafe,
    Tag: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<T> Decodable for T where
    T: UseSpecializedDecodable
[src]

impl<T> Encodable for T where
    T: UseSpecializedEncodable + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeResult<T> for T[src]

type Error = !

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

impl<E> SpecializationError for E[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]