[][src]Module exonum_merkledb::sparse_list_index

An implementation of an array list of items with spaces.

The given section contains methods related to SparseListIndex and iterators over the items of this index.

Structs

SparseListIndex

A list of items similar to the ListIndex, however, it may contain "spaces". For instance, a list might contain six elements with indices: "1, 2, 3, 5, 7, 8" (missing 4 and 6). And if you try to get the element for index 4 or 6, you'll get None.

SparseListIndexIter

Returns an iterator over the items of a SparseListIndex.

SparseListIndexKeys

Returns an iterator over the indices of a SparseListIndex.

SparseListIndexValues

Returns an iterator over the values of a SparseListIndex.