[go: up one dir, main page]

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.

Object Safety§

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§