Struct gluon_base::scoped_map::ScopedMap [−][src]
Expand description
A map struct which allows for the introduction of different scopes Introducing a new scope will make it possible to introduce additional variables with names already defined, shadowing the old name After exiting a scope the shadowed variable will again be re introduced
Implementations
Introduces a new scope
pub fn exit_scope(&mut self) -> ExitScopeIter<'_, K, V>ⓘNotable traits for ExitScopeIter<'a, K, V>impl<'a, K, V> Iterator for ExitScopeIter<'a, K, V> where
K: Eq + Hash + Clone, type Item = (K, V);
pub fn exit_scope(&mut self) -> ExitScopeIter<'_, K, V>ⓘNotable traits for ExitScopeIter<'a, K, V>impl<'a, K, V> Iterator for ExitScopeIter<'a, K, V> where
K: Eq + Hash + Clone, type Item = (K, V);
impl<'a, K, V> Iterator for ExitScopeIter<'a, K, V> where
K: Eq + Hash + Clone, type Item = (K, V);
Exits the current scope, returning an iterator over the (key, value) pairs that are removed
When ExitScopeIter
is dropped any remaining pairs of the scope is removed as well.
Removes a previously inserted value from the map.
Returns true if the key has a value declared in the last declared scope
Returns a reference to the last inserted value corresponding to the key
Returns a reference to the all inserted value corresponding to the key
Returns the number of elements in the container. Shadowed elements are counted
Swaps the value stored at key, or inserts it if it is not present
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