Skip to main content

FxHashWithCapacity

Trait FxHashWithCapacity 

Source
pub trait FxHashWithCapacity {
    // Required method
    fn with_capacity(capacity: usize) -> Self;
}
Expand description

Adds with_capacity function for rustc-hash types.

Required Methods§

Source

fn with_capacity(capacity: usize) -> Self

Creates an empty instance with 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<K, V> FxHashWithCapacity for FxHashMap<K, V>

Source§

fn with_capacity(capacity: usize) -> Self

Source§

impl<V> FxHashWithCapacity for FxHashSet<V>

Source§

fn with_capacity(capacity: usize) -> Self

Implementors§