pub trait HashCollectionExt {
// Required methods
fn new() -> Self;
fn with_capacity(capacity: usize) -> Self;
}Required Methods§
Sourcefn new() -> Self
fn new() -> Self
Returns a new collection with default capacity, using S::default() to build the hasher.
Sourcefn with_capacity(capacity: usize) -> Self
fn with_capacity(capacity: usize) -> Self
Returns a new collection with capacity, using S::default() to build the hasher.
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.