Module segment

Source
Expand description

§segment

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

Structs§

FlatSegment
Base segment.
IdSegment
In memory representation of a segment. Mostly useful for external use-cases.
PreparedFlatSegments
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
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.
SegmentFlags

Functions§

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