Skip to main content

Module builder

Module builder 

Source
Expand description

ConfigVec<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::Space between 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 per docs/specs/config.md §Edge cases:
build_segments
Build a segment list from an optional Config. None or a config without a [line] section uses the default order. warn receives a one-line diagnostic for each validation rule triggered (pass |_| {} to discard).