Expand description
EDIFACT tokenization helper — collects segments from input into a Vec.
The edifact-parser crate uses an event-driven (SAX-style) API.
This module provides a convenience function that collects all parsed
segments into an owned Vec<OwnedSegment> for two-pass processing.
OwnedSegment itself lives in mig-types::segment — re-exported here
for backward compatibility.
Structs§
- Interchange
Chunks - A complete EDIFACT interchange split into per-message chunks.
- Message
Chunk - A single EDIFACT message (UNH…UNT) with its interchange envelope.
- Owned
Segment - An owned version of a parsed EDIFACT segment — stores String data.
Functions§
- parse_
to_ segments - Parse an EDIFACT message into a list of owned segments.
- split_
messages - Split a flat segment list into per-message chunks at UNH/UNT boundaries.