Skip to main content

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//! - [`charset`] — reading and writing an interchange in the character set its `UNB` declares
13
14pub mod charset;
15mod control;
16mod delimiters;
17mod escape;
18mod position;
19mod segment;
20
21pub use control::Control;
22pub use delimiters::{EdifactDelimiters, UnaParseError};
23pub use position::SegmentPosition;
24pub use segment::RawSegment;