Module dag::segment

source ·
Expand description

segment

Segmented DAG. See [IdDag] for the main structure.

Structs

Base segment.
In memory representation of a segment. Mostly useful for external use-cases.
These segments can be used directly in the build process of the IdDag. They produced by IdMap::assign_head and IdDag::all_flat_segments.
Segment represents a range of Ids in an [IdDag] graph. It provides methods to access properties of the segments, including the range itself, parents, and level information.

Functions

Describe bytes of a Segment. This is only for troubleshooting purpose.