aoc::util::hash

Trait FastMapBuilder

Source
pub trait FastMapBuilder<K, V> {
    // Required methods
    fn new() -> Self;
    fn with_capacity(capacity: usize) -> Self;
    fn build<const N: usize>(array: [(K, V); N]) -> Self;
}
Expand description

Convenience methods to contruct a FastMap.

Required Methods§

Source

fn new() -> Self

Source

fn with_capacity(capacity: usize) -> Self

Source

fn build<const N: usize>(array: [(K, V); N]) -> Self

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§

Source§

impl<K: Eq + Hash, V> FastMapBuilder<K, V> for FastMap<K, V>