Expand description
Dictionary implementation.
Structs§
- AugDict
- Typed augmented dictionary with fixed length keys.
- AugIter
- An iterator over the entries of an
AugDict. - Dict
- Typed dictionary with fixed length keys.
- Iter
- An iterator over the entries of a
Dict. - Keys
- An iterator over the keys of a
Dict. - RawDict
- Dictionary with fixed length keys (where
Nis a number of bits in each key). - RawIter
- An iterator over the entries of a
RawDictor aDict. - RawKeys
- An iterator over the keys of a
RawDictor aDict. - RawOwned
Iter - An iterator over the owned entries of a
RawDict. - RawOwned
Values - An iterator over the owned values of a
RawDict. - RawValues
- An iterator over the values of a
RawDictor aDict. - Union
Iter - An iterator over the entries across two
Dict. - Union
RawIter - An iterator over the entries across two
RawDictor twoDict. - Values
- An iterator over the values of a
Dict.
Enums§
- Branch
- Which branch to take when traversing the tree.
- Dict
Bound - Dictionary bound.
- SetMode
- Dictionary insertion mode.
Traits§
- AugDict
Extra - A trait for values that can be used as augmented values in an augmented dictionary.
- DictKey
- Type which can be used as a dictionary key.
- Search
ByExtra AugDictsearch control flow.
Functions§
- aug_
dict_ find_ by_ extra - Searches for an item using a predicate on extra values.
- aug_
dict_ insert - Inserts the value associated with key in aug dictionary
in accordance with the logic of the specified
SetModeand comparator for extra - aug_
dict_ remove_ owned - Removes the value associated with key in aug dictionary. Returns a tuple with a new dictionary cell and an optional removed value.
- build_
aug_ dict_ from_ sorted_ iter - Builds a new augmented dictionary from an iterator of sorted unique entries.
- build_
dict_ from_ sorted_ iter - Builds a new dictionary from an iterator of sorted unique entries.
- dict_
find_ bound - Finds the specified dict bound and returns a key and a value corresponding to the key.
- dict_
find_ bound_ owned - Finds the specified dict bound and returns a key and cell slice parts corresponding to the key.
- dict_
find_ owned - Returns cell slice parts of the value corresponding to the key.
- dict_
get - Returns a
CellSliceof the value corresponding to the key. - dict_
get_ owned - Returns cell slice parts of the value corresponding to the key.
- dict_
get_ subdict - Gets subdictionary by specified prefiex Returns optional dictionary as Cell representation if specified prefix is present in dictionary
- dict_
insert - Inserts the value associated with key in dictionary
in accordance with the logic of the specified
SetMode. - dict_
insert_ owned - Inserts the value associated with key in dictionary
in accordance with the logic of the specified
SetMode. - dict_
load_ from_ root - Loads a non-empty dictionary from the root cell.
- dict_
merge - Merges two dictionaries into one (left)
- dict_
remove_ bound_ owned - Removes the specified dict bound and returns a removed key and cell slice parts.
- dict_
remove_ owned - Removes the value associated with key in dictionary. Returns a tuple with a new dictionary cell and an optional removed value.
- dict_
split_ by_ prefix - Splits one dictionary by the key prefix
Type Aliases§
- AugDict
Fn - A type for a comparator function for
AugDict. - Dict
Owned Entry - Type alias for a pair of key and value as cell slice parts.