Module id_table

Source

Modulesยง

heterogeneous_map ๐Ÿ”’
This module provides an heterogenous map that can store types that implement the trait SupportedType.
serde_repr ๐Ÿ”’
Defines representations for various types when serializing or/and deserializing via serde

Structsยง

Id
Unique IDs in a ID table.
Node
A node is a bundle of an ID with a value.
Session
A session providing fresh IDs for ID table.
Table
A table is a map from IDs to Values. When serialized, we represent a table as a sorted vector. Indeed, the values stored in the table might reference each other, without cycle, so the order matters.
WithTable
Wrapper for a type T that creates a bundle containing both a ID table and a value T. That value may contains Node values inside it. Serializing WithTable<T> will serialize IDs only, skipping values. Deserialization of a WithTable<T> will automatically use the table and IDs to reconstruct skipped values.

Enumsยง

Value
The different types of values one can store in an ID table.

Staticsยง

DESERIALIZATION_STATE ๐Ÿ”’
The state used for deserialization: a table.
DESERIALIZATION_STATE_LOCK ๐Ÿ”’
SERIALIZATION_MODE_USE_IDS ๐Ÿ”’
The mode of serialization: should Node<T> ship values of type T or not?

Functionsยง

serialize_use_id ๐Ÿ”’