Trait ahash::HashMapExt

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

A convenience trait that can be used together with the type aliases defined to get access to the new() and with_capacity() methods for the HashMap type alias.

Required Methods§

source

fn new() -> Self

Constructs a new HashMap

source

fn with_capacity(capacity: usize) -> Self

Constructs a new HashMap with a given initial capacity

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<K, V, S> HashMapExt for HashMap<K, V, S>
where S: BuildHasher + Default,

source§

fn new() -> Self

source§

fn with_capacity(capacity: usize) -> Self

Implementors§