pub trait HashSetExt {
// Required methods
fn new() -> Self;
fn with_capacity(capacity: usize) -> Self;
}Expand description
A convenience trait that can be used together with the type aliases defined to
get access to the new() and with_capacity() methods for the HashSet type aliases.
Required Methods§
Sourcefn with_capacity(capacity: usize) -> Self
fn with_capacity(capacity: usize) -> Self
Constructs a new HashSet with a given initial 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.