Trait aoc::util::hash::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

Object Safety§

This trait is not object safe.

Implementors§

source§

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