FxHashSetExt

Trait FxHashSetExt 

Source
pub trait FxHashSetExt<V> {
    // Required method
    fn new() -> Self;
}
Expand description

A trait to add a new constructor for FxHashSet.

§Example

use fx_hash::{FxHashSet, FxHashSetExt};

// Create a new FxHashSet
let set: FxHashSet<String> = FxHashSet::new();

Required Methods§

Source

fn new() -> Self

Creates a new instance with the default FxBuildHasher.

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.

Implementors§