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>where
I: Idx,
K: Ord,
impl<I, K, V> SortedIndexMultiMap<I, K, V>where
I: Idx,
K: Ord,
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>
Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more