edifact_primitives/lib.rs
1//! Shared EDIFACT primitive types.
2//!
3//! This crate defines the core data structures used across the EDIFACT parser
4//! and automapper pipeline. It has zero external dependencies.
5//!
6//! # Types
7//!
8//! - [`EdifactDelimiters`] — the six delimiter characters
9//! - [`SegmentPosition`] — byte offset and segment/message numbering
10//! - [`RawSegment`] — zero-copy parsed segment borrowing from the input buffer
11//! - [`Control`] — handler flow control (Continue / Stop)
12
13mod control;
14mod delimiters;
15mod position;
16mod segment;
17
18pub use control::Control;
19pub use delimiters::{EdifactDelimiters, UnaParseError};
20pub use position::SegmentPosition;
21pub use segment::RawSegment;