pub struct AssemblerConfig {
pub skip_unknown_segments: bool,
pub qualifier_map: HashMap<String, (usize, usize, String)>,
}Expand description
Configuration for the assembler.
Fields§
§skip_unknown_segments: boolWhen true, the assembler skips segments inside a group instance that
don’t match any remaining MIG slot, nested-group entry, or the group’s
entry tag (next repetition). Skipped segments are preserved on
AssembledGroupInstance::skipped_segments for roundtrip re-emission.
Default: false (strict AHB — unknown segments stall the cursor).
qualifier_map: HashMap<String, (usize, usize, String)>Qualifier-aware assembly: maps MIG Number to (element_index, component_index, expected_value).
When a bounded slot has a number with an entry in this map,
try_consume_segment checks the input segment’s value at the
specified position. If it doesn’t match, the slot is skipped (segment
is for a different qualifier variant).
Build from the PID schema JSON, or construct manually:
{ "00023" => (0, 0, "92".to_string()), "00024" => (0, 0, "93".to_string()) }.
Default: empty (positional assembly, no qualifier checking).
Trait Implementations§
Source§impl Clone for AssemblerConfig
impl Clone for AssemblerConfig
Source§fn clone(&self) -> AssemblerConfig
fn clone(&self) -> AssemblerConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more