Expand description
Config → Vec<Box<dyn Segment>> with validation. Hides built-in
registry lookup, duplicate handling, unknown-ID warnings,
per-segment override merging, and plugin-registry consultation.
Functions§
- build_
default_ segments - Build the default line: every built-in in canonical order with
Separator::Spacebetween each pair, no overrides applied. - build_
lines - Build a list of segment lists, one per rendered line. Single-line
configs return a vec of length 1; multi-line configs return one
inner vec per
[line.N]sub-table sorted by the parsed integer key. Edge cases perdocs/specs/config.md§Edge cases: - build_
segments - Build a segment list from an optional
Config.Noneor a config without a[line]section uses the default order.warnreceives a one-line diagnostic for each validation rule triggered (pass|_| {}to discard).