type CaptureMap<'tcx> = SortedIndexMultiMap<usize, HirId, Capture<'tcx>>;
Aliased Type§
struct CaptureMap<'tcx> { /* private fields */ }
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: 48 bytes
Implementations
Source§impl<I, K, V> SortedIndexMultiMap<I, K, V>
impl<I, K, V> SortedIndexMultiMap<I, K, V>
pub fn new() -> SortedIndexMultiMap<I, K, V>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn into_iter(self) -> impl DoubleEndedIterator
pub fn into_iter(self) -> impl DoubleEndedIterator
Returns an iterator over the items in the map in insertion order.
Sourcepub fn into_iter_enumerated(self) -> impl DoubleEndedIterator
pub fn into_iter_enumerated(self) -> impl DoubleEndedIterator
Returns an iterator over the items in the map in insertion order along with their indices.
Sourcepub fn iter(&self) -> impl DoubleEndedIterator
pub fn iter(&self) -> impl DoubleEndedIterator
Returns an iterator over the items in the map in insertion order.
Sourcepub fn iter_enumerated(&self) -> impl DoubleEndedIterator
pub fn iter_enumerated(&self) -> impl DoubleEndedIterator
Returns an iterator over the items in the map in insertion order along with their indices.
Sourcepub fn get_by_key(&self, key: K) -> impl Iterator<Item = &V>
pub fn get_by_key(&self, key: K) -> impl Iterator<Item = &V>
Returns an iterator over the items in the map that are equal to key
.
If there are multiple items that are equivalent to key
, they will be yielded in
insertion order.
Sourcepub fn get_by_key_enumerated(&self, key: K) -> impl Iterator<Item = (I, &V)>
pub fn get_by_key_enumerated(&self, key: K) -> impl Iterator<Item = (I, &V)>
Returns an iterator over the items in the map that are equal to key
along with their
indices.
If there are multiple items that are equivalent to key
, they will be yielded in
insertion order.
pub fn contains_key(&self, key: K) -> bool
Trait Implementations
Source§impl<I, K, V> Clone for SortedIndexMultiMap<I, K, V>
impl<I, K, V> Clone for SortedIndexMultiMap<I, K, V>
Source§fn clone(&self) -> SortedIndexMultiMap<I, K, V>
fn clone(&self) -> SortedIndexMultiMap<I, K, V>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<I, K, V> Debug for SortedIndexMultiMap<I, K, V>
impl<I, K, V> Debug for SortedIndexMultiMap<I, K, V>
Source§impl<I, K, V> FromIterator<(K, V)> for SortedIndexMultiMap<I, K, V>
impl<I, K, V> FromIterator<(K, V)> for SortedIndexMultiMap<I, K, V>
Source§fn from_iter<J>(iter: J) -> SortedIndexMultiMap<I, K, V>where
J: IntoIterator<Item = (K, V)>,
fn from_iter<J>(iter: J) -> SortedIndexMultiMap<I, K, V>where
J: IntoIterator<Item = (K, V)>,
Source§impl<I, K, V> Hash for SortedIndexMultiMap<I, K, V>
impl<I, K, V> Hash for SortedIndexMultiMap<I, K, V>
Source§impl<I, K, V, C> HashStable<C> for SortedIndexMultiMap<I, K, V>
impl<I, K, V, C> HashStable<C> for SortedIndexMultiMap<I, K, V>
fn hash_stable(&self, ctx: &mut C, hasher: &mut StableHasher<SipHasher128>)
Source§impl<I, K, V> Index<I> for SortedIndexMultiMap<I, K, V>where
I: Idx,
impl<I, K, V> Index<I> for SortedIndexMultiMap<I, K, V>where
I: Idx,
Source§impl<I, K, V> PartialEq for SortedIndexMultiMap<I, K, V>
impl<I, K, V> PartialEq for SortedIndexMultiMap<I, K, V>
Source§fn eq(&self, other: &SortedIndexMultiMap<I, K, V>) -> bool
fn eq(&self, other: &SortedIndexMultiMap<I, K, V>) -> bool
self
and other
values to be equal, and is used by ==
.