pub struct SegmentPosition {
pub segment_number: u32,
pub byte_offset: usize,
pub message_number: u32,
}Expand description
Position metadata for a parsed EDIFACT segment.
Tracks where a segment was found in the input stream, enabling error reporting with byte-level precision.
Fields§
§segment_number: u321-based segment number within the interchange.
byte_offset: usizeByte offset from the start of the input.
message_number: u321-based message number within the interchange (0 for service segments UNB/UNZ).
Implementations§
Trait Implementations§
Source§impl Clone for SegmentPosition
impl Clone for SegmentPosition
Source§fn clone(&self) -> SegmentPosition
fn clone(&self) -> SegmentPosition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SegmentPosition
impl Debug for SegmentPosition
Source§impl Display for SegmentPosition
impl Display for SegmentPosition
Source§impl Hash for SegmentPosition
impl Hash for SegmentPosition
Source§impl PartialEq for SegmentPosition
impl PartialEq for SegmentPosition
impl Copy for SegmentPosition
impl Eq for SegmentPosition
impl StructuralPartialEq for SegmentPosition
Auto Trait Implementations§
impl Freeze for SegmentPosition
impl RefUnwindSafe for SegmentPosition
impl Send for SegmentPosition
impl Sync for SegmentPosition
impl Unpin for SegmentPosition
impl UnsafeUnpin for SegmentPosition
impl UnwindSafe for SegmentPosition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more