Skip to main content

Module collections

Module collections 

Source
Expand description

Collection conversions (HashMap, BTreeMap, HashSet, BTreeSet) to R.

  • HashMap<String, V> / BTreeMap<String, V> โ†’ named R list
  • HashSet<T> / BTreeSet<T> โ†’ unnamed R vector (via Vec intermediary)

Macrosยง

impl_map_into_r ๐Ÿ”’
impl_set_string_into_r ๐Ÿ”’

Functionsยง

map_to_named_list ๐Ÿ”’
Helper to convert an iterator of (String, V) pairs to a named R list.
map_to_named_list_unchecked ๐Ÿ”’ โš 
Unchecked version of map_to_named_list.