pub trait HashMapExt {
// Required methods
fn new() -> Self;
fn with_capacity(capacity: usize) -> Self;
}
Expand description
Helper trait that provides convenience methods for AHashMap
and UstrMap
.
Required Methods§
Sourcefn with_capacity(capacity: usize) -> Self
fn with_capacity(capacity: usize) -> Self
Constructs an empty map 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.