Struct gluon_base::scoped_map::ScopedMap [] [src]

pub struct ScopedMap<K: Eq + Hash + Clone, V> { /* fields omitted */ }

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

Methods

impl<K: Eq + Hash + Clone, V> ScopedMap<K, V>
[src]

Introduces a new scope

Exits the current scope, removing anything inserted since the matching enter_scope call

Removes a previusly inserted value from the map.

Returns true if the key has a value declared in the last declared scope

Returns an iterator of the (key, values) pairs inserted in the map

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 not counted

Returns true if this map is empty

Removes all elements

Swaps the value stored at key, or inserts it if it is not present

Trait Implementations

impl<K: Debug + Eq + Hash + Clone, V: Debug> Debug for ScopedMap<K, V>
[src]

Formats the value using the given formatter.