Trait polars::datatypes::InitHashMaps

source ·
pub trait InitHashMaps {
    type HashMap;

    // Required methods
    fn new() -> Self::HashMap;
    fn with_capacity(capacity: usize) -> Self::HashMap;
}

Required Associated Types§

Required Methods§

source

fn new() -> Self::HashMap

source

fn with_capacity(capacity: usize) -> Self::HashMap

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<K> InitHashMaps for HashSet<K, RandomState>

§

type HashMap = HashSet<K, RandomState>

source§

fn new() -> <HashSet<K, RandomState> as InitHashMaps>::HashMap

source§

fn with_capacity(capacity: usize) -> HashSet<K, RandomState>

source§

impl<K> InitHashMaps for IndexSet<K, RandomState>

§

type HashMap = IndexSet<K, RandomState>

source§

fn new() -> <IndexSet<K, RandomState> as InitHashMaps>::HashMap

source§

fn with_capacity( capacity: usize ) -> <IndexSet<K, RandomState> as InitHashMaps>::HashMap

source§

impl<K, V> InitHashMaps for HashMap<K, V, RandomState>

§

type HashMap = HashMap<K, V, RandomState>

source§

fn new() -> <HashMap<K, V, RandomState> as InitHashMaps>::HashMap

source§

fn with_capacity(capacity: usize) -> HashMap<K, V, RandomState>

source§

impl<K, V> InitHashMaps for IndexMap<K, V, RandomState>

§

type HashMap = IndexMap<K, V, RandomState>

source§

fn new() -> <IndexMap<K, V, RandomState> as InitHashMaps>::HashMap

source§

fn with_capacity( capacity: usize ) -> <IndexMap<K, V, RandomState> as InitHashMaps>::HashMap

Implementors§