Skip to main content

CollectToGenMap

Trait CollectToGenMap 

Source
pub trait CollectToGenMap<K, V, S = RandomState>: Sized + IntoIterator<Item = (K, V)>
where K: Clone,
{ // Provided method fn to_genmap(self) -> GenMapOf<K, V, u32, S> where GenMapOf<K, V, u32, S>: WithCapacity + Reserve, <GenMapOf<K, V, u32, S> as WithCapacity>::Param: Default, S: Default + Insert<K, GenIDOf<V>> { ... } }

Provided Methods§

Source

fn to_genmap(self) -> GenMapOf<K, V, u32, S>
where GenMapOf<K, V, u32, S>: WithCapacity + Reserve, <GenMapOf<K, V, u32, S> as WithCapacity>::Param: Default, S: Default + Insert<K, GenIDOf<V>>,

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<I, K, V, S> CollectToGenMap<K, V, S> for I
where I: IntoIterator<Item = (K, V)>, K: Clone,