pub type TraceSegmentId = usize;
The id of a trace segment is its index in the trace_columns declaration