#collections #multimap

more_collections

Additional collections not found in std::collections

3 releases (breaking)

Uses new Rust 2021

0.3.0 Mar 11, 2022
0.2.0 Mar 11, 2022
0.1.0 Dec 24, 2021

#309 in Data structures

Download history 237/week @ 2022-04-26 133/week @ 2022-05-03 113/week @ 2022-05-10 70/week @ 2022-05-17 41/week @ 2022-05-24 148/week @ 2022-05-31 87/week @ 2022-06-07 52/week @ 2022-06-14 104/week @ 2022-06-21 89/week @ 2022-06-28 42/week @ 2022-07-05 56/week @ 2022-07-12 51/week @ 2022-07-19 143/week @ 2022-07-26 138/week @ 2022-08-02 80/week @ 2022-08-09

420 downloads per month

Apache-2.0

55KB
964 lines

More collections   Latest Version Docs badge License: Apache-2.0

Additional Rust collections not found in std::collections.

Multimaps

Completion Name Behaves as
🟩🟩🟩🟩🟨 HashSetMultimap HashMap<K, HashSet<V>>
🟩🟩🟩🟩🟨 HashVecMultimap HashMap<K, Vec<V>>
🟩🟩🟩🟩🟨 IndexSetMultimap IndexMap<K, IndexSet<V>>
🟩🟩🟩🟩🟨 IndexVecMultimap IndexMap<K, Vec<V>>
⬜️⬜️⬜️⬜️⬜️ BTreeSetMultimap BTreeMap<K, BTreeSet<V>>
⬜️⬜️⬜️⬜️⬜️ BTreeVecMultimap BTreeMap<K, Vec<V>>
⬜️⬜️⬜️⬜️⬜️ EnumHashSetMultimap EnumMap<K, HashSet<V>>
⬜️⬜️⬜️⬜️⬜️ EnumIndexSetMultimap EnumMap<K, IndexSet<V>>
⬜️⬜️⬜️⬜️⬜️ EnumVecMultimap EnumMap<K, Vec<V>>
⬜️⬜️⬜️⬜️⬜️ EnumEnumMultimap EnumMap<K, EnumSet<V>>

Multisets

Completion Name Behaves as
⬜️⬜️⬜️⬜️⬜️ IndexMultiset IndexMap<K,usize>
⬜️⬜️⬜️⬜️⬜️ HashMultiset HashMap<K,usize>
⬜️⬜️⬜️⬜️⬜️ BTreeMultiset BTreeMap<K,usize>
⬜️⬜️⬜️⬜️⬜️ EnumMultiset EnumMap<K,usize>

Multimaps overview

Method HashSetMultimap HashVecMultimap IndexSetMultimap IndexVecMultimap
new()
with_key_capacity()
with_hasher()
with_key_capacity_and_hasher()
key_capacity()
keys()
values()
values_mut() maybe maybe maybe maybe
iter()
len()
is_empty()
keys_len()
reserve()
shrink_keys_to_fit()
shrink_values_to_fit()
shrink_keys_to() planned planned - -
shrink_values_to() planned planned - planned
entry() planned planned planned planned
get()
get_key_values()
contains_key()
get_mut() maybe maybe maybe maybe
insert()
remove_key()
remove_key_entry()
retain()
into_keys()
into_values()
remove()
contains()
as_map()
into_map()
IndexMap keys methods
insert_full() - -
get_full() - -
get_key_index() - -
get_full_mut() - - maybe maybe
swap_remove() - - planned planned
swap_remove_entry() - - planned planned
swap_remove_full() - - planned planned
shift_remove() - - planned planned
shift_remove_entry() - - planned planned
shift_remove_full() - - planned planned
pop() - - planned planned
sort_keys() - - planned planned
sort_by() - - planned planned
sorted_by() - - planned planned
reverse() - - planned planned
get_index() - - planned planned
get_index_mut() - - maybe maybe
first() - - planned planned
first_mut() - - maybe maybe
last() - - planned planned
last_mut() - - maybe maybe
swap_remove_index() - - planned planned
shift_remove_index() - - planned planned
swap_indices() - - planned planned
Set values methods
difference() planned - planned -
symmetric_difference() planned - planned -
intersection() planned - planned -
union() planned - planned -
is_disjoint() planned - planned -
is_subset() planned - planned -
is_superset() planned - planned -
Consistent ordered values methods
sort_values() - planned planned planned
sort_values_by() - planned planned planned
TODO consider adding more mutators
Traits
Extend
FromIterator
From wrapped type
IntoIterator
Default
Index
Eq
PartialEq
Debug
Clone
Serializable planned planned planned planned
Deserializable planned planned planned planned

Todo

Dependencies

~105KB