Skip to main content

FxHashMapExt

Trait FxHashMapExt 

Source
pub trait FxHashMapExt<K, V> {
    // Required methods
    fn new() -> Self;
    fn with_capacity(capacity: usize) -> Self;
}
Expand description

Extension trait for creating FxHashMap instances.

Required Methods§

Source

fn new() -> Self

Create a new empty map.

Source

fn with_capacity(capacity: usize) -> Self

Create a new map with the given capacity.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<K, V> FxHashMapExt<K, V> for FxHashMap<K, V>