FxHashMapExt

Trait FxHashMapExt 

Source
pub trait FxHashMapExt<K, V> {
    // Required method
    fn new() -> Self;
}
Expand description

A trait to add a new constructor for FxHashMap.

§Example

use fx_hash::{FxHashMap, FxHashMapExt};

// Create a new FxHashMap
let map: FxHashMap<String, i32> = FxHashMap::new();

Required Methods§

Source

fn new() -> Self

Creates a new instance with the default FxBuildHasher.

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>