pub trait HashSetExt {
// Required methods
fn new() -> Self;
fn with_capacity(capacity: usize) -> Self;
}Expand description
A convenience extension trait to enable HashSet::new for hash sets that use foldhash.
Required Methods§
sourcefn with_capacity(capacity: usize) -> Self
fn with_capacity(capacity: usize) -> Self
Creates an empty HashSet with at least the specified capacity.
Object Safety§
This trait is not object safe.