Struct network_collections::BoundedHashMap[][src]

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

A bounded hash map, very similar to a regular Rust HashMap but can not become larger than its maximum capacity (plus one); ideal for indexes of network connections, etc in resource constraint aware environments.

Methods

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

Creates a new instance.

Identical to HashMap.

Identical to HashMap.

Identical to HashMap.

Is this map full?

Is this map over-full? False if just full.

Important traits for &'a mut R

Inserts a value once, returning a mutable reference to it.

Identical to HashMap.

Identical to HashMap.

Identical to HashMap.

Trait Implementations

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<K, V> Send for BoundedHashMap<K, V> where
    K: Send,
    V: Send

impl<K, V> Sync for BoundedHashMap<K, V> where
    K: Sync,
    V: Sync