cast::revm::interpreter::primitives::alloy_primitives::map::foldhash

Trait HashMapExt

pub trait HashMapExt {
    // Required methods
    fn new() -> Self;
    fn with_capacity(capacity: usize) -> Self;
}
Available on crate feature map only.
Expand description

A convenience extension trait to enable HashMap::new for hash maps that use foldhash.

Required Methods§

fn new() -> Self

Creates an empty HashMap.

fn with_capacity(capacity: usize) -> Self

Creates an empty HashMap with at least the specified 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§

§

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

§

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