Struct rustc::mir::interpret::Relocations [−][src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods
impl Relocations
[src]
impl Relocations
pub fn new() -> Relocations
[src]
pub fn new() -> Relocations
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn from_presorted(r: Vec<(Size, AllocId)>) -> Relocations
[src]
pub fn from_presorted(r: Vec<(Size, AllocId)>) -> Relocations
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods from Deref<Target = SortedMap<Size, AllocId>>
pub fn insert(&mut self, key: K, value: V) -> Option<V>
[src]
pub fn insert(&mut self, key: K, value: V) -> Option<V>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn remove(&mut self, key: &K) -> Option<V>
[src]
pub fn remove(&mut self, key: &K) -> Option<V>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn get(&self, key: &K) -> Option<&V>
[src]
pub fn get(&self, key: &K) -> Option<&V>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn get_mut(&mut self, key: &K) -> Option<&mut V>
[src]
pub fn get_mut(&mut self, key: &K) -> Option<&mut V>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn clear(&mut self)
[src]
pub fn clear(&mut self)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
ⓘImportant traits for Iter<'a, T>pub fn iter(&self) -> Iter<(K, V)>
[src]
pub fn iter(&self) -> Iter<(K, V)>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Iterate over elements, sorted by key
pub fn keys(
&self
) -> impl Iterator<Item = &K> + ExactSizeIterator
[src]
pub fn keys(
&self
) -> impl Iterator<Item = &K> + ExactSizeIterator
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Iterate over the keys, sorted
pub fn values(
&self
) -> impl Iterator<Item = &V> + ExactSizeIterator
[src]
pub fn values(
&self
) -> impl Iterator<Item = &V> + ExactSizeIterator
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Iterate over values, sorted by key
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn range<R>(&self, range: R) -> &[(K, V)] where
R: RangeBounds<K>,
[src]
pub fn range<R>(&self, range: R) -> &[(K, V)] where
R: RangeBounds<K>,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn remove_range<R>(&mut self, range: R) where
R: RangeBounds<K>,
[src]
pub fn remove_range<R>(&mut self, range: R) where
R: RangeBounds<K>,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn offset_keys<F>(&mut self, f: F) where
F: Fn(&mut K),
[src]
pub fn offset_keys<F>(&mut self, f: F) where
F: Fn(&mut K),
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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]
pub fn insert_presorted(&mut self, elements: Vec<(K, V)>)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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.
Trait Implementations
impl Clone for Relocations
[src]
impl Clone for Relocations
fn clone(&self) -> Relocations
[src]
fn clone(&self) -> Relocations
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for Relocations
[src]
impl PartialEq for Relocations
fn eq(&self, other: &Relocations) -> bool
[src]
fn eq(&self, other: &Relocations) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Relocations) -> bool
[src]
fn ne(&self, other: &Relocations) -> bool
This method tests for !=
.
impl Eq for Relocations
[src]
impl Eq for Relocations
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
impl PartialOrd for Relocations
[src]
impl PartialOrd for Relocations
fn partial_cmp(&self, other: &Relocations) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Relocations) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Relocations) -> bool
[src]
fn lt(&self, other: &Relocations) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Relocations) -> bool
[src]
fn le(&self, other: &Relocations) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Relocations) -> bool
[src]
fn gt(&self, other: &Relocations) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Relocations) -> bool
[src]
fn ge(&self, other: &Relocations) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Relocations
[src]
impl Ord for Relocations
fn cmp(&self, other: &Relocations) -> Ordering
[src]
fn cmp(&self, other: &Relocations) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for Relocations
[src]
impl Hash for Relocations
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Relocations
[src]
impl Debug for Relocations
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Encodable for Relocations
[src]
impl Encodable for Relocations
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl Decodable for Relocations
[src]
impl Decodable for Relocations
fn decode<__D: Decoder>(d: &mut __D) -> Result<Relocations, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<Relocations, __D::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl Deref for Relocations
[src]
impl Deref for Relocations
type Target = SortedMap<Size, AllocId>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for Relocations
[src]
impl DerefMut for Relocations
Auto Trait Implementations
impl Send for Relocations
impl Send for Relocations
impl Sync for Relocations
impl Sync for Relocations