foldhash

Trait HashSetExt

Source
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§

Source

fn new() -> Self

Creates an empty HashSet.

Source

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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> HashSetExt for HashSet<T, FixedState>

Source§

fn new() -> Self

Source§

fn with_capacity(capacity: usize) -> Self

Source§

impl<T> HashSetExt for HashSet<T, RandomState>

Source§

fn new() -> Self

Source§

fn with_capacity(capacity: usize) -> Self

Implementors§