pub fn write_trade_segments( layout: &StartposLayout, plan: &CaiPlan, splines: usize, ) -> Result<RecordNode>
Writes the trade route segments list: one per trade spline, holding its index.
layout
plan
splines
Returns an error if the layout lacks the records.