Skip to main content

HashMapExt

Trait HashMapExt 

Source
pub trait HashMapExt {
    // Required methods
    fn new() -> Self;
    fn with_capacity(capacity: usize) -> Self;
}
Expand description

new and with_capacity for HashMap, which hashbrown gives only for its default hasher.

Required Methods§

Source

fn new() -> Self

Source

fn with_capacity(capacity: usize) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<K, V> HashMapExt for HashMap<K, V>