Struct rustc_ap_rustc_data_structures::vec_map::VecMap [−][src]
pub struct VecMap<K, V>(_);
Expand description
A map type implemented as a vector of pairs K
(key) and V
(value).
It currently provides a subset of all the map operations, the rest could be added as needed.
Implementations
Sets the value of the entry, and returns the entry’s old value.
Gets a reference to the value in the entry.
Returns the value corresponding to the supplied predicate filter.
The supplied predicate will be applied to each (key, value) pair and it will return a
reference to the values where the predicate returns true
.
Returns true
if the map contains a value for the specified key.
The key may be any borrowed form of the map’s key type,
Eq
on the borrowed form must match those for
the key type.
Trait Implementations
Extends a collection with the contents of an iterator. Read more
extend_one
)Extends a collection with exactly one element.
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
impl<K, V, CTX> HashStable<CTX> for VecMap<K, V> where
K: HashStable<CTX> + Eq,
V: HashStable<CTX>,
impl<K, V, CTX> HashStable<CTX> for VecMap<K, V> where
K: HashStable<CTX> + Eq,
V: HashStable<CTX>,
Auto Trait Implementations
impl<K, V> RefUnwindSafe for VecMap<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> UnwindSafe for VecMap<K, V> where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V