Skip to main content

Module map

Module map 

Source
Expand description

Map, an immutable hash map whose lookups run in the FFI runtime.

Converting an Any into a Map<K, V> checks every entry; when an entry is not a K/V as is, the entries are converted one by one into a new map.

Structsยง

Iter
Iterator over (key, value) pairs, created by Map::iter.
Keys
Iterator over keys, created by Map::keys.
Map
An immutable, reference-counted map from K to V, passed across languages as ffi.Map.
MapObj
The object behind a Map. The header fields are laid out as the C++ MapBaseObj, so Map::len reads size without an FFI call; the storage data points to stays opaque.
Values
Iterator over values, created by Map::values.