Trait HashSetExt
pub trait HashSetExt {
// 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 HashSet::new for hash sets that use foldhash.
Required Methods§
fn new() -> Self
fn new() -> Self
Creates an empty HashSet.
fn with_capacity(capacity: usize) -> Self
fn with_capacity(capacity: usize) -> Self
Creates an empty HashSet 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".