pub struct AssembledTree {
pub segments: Vec<AssembledSegment>,
pub groups: Vec<AssembledGroup>,
pub post_group_start: usize,
pub inter_group_segments: BTreeMap<usize, Vec<AssembledSegment>>,
}Expand description
A generic assembled tree node (before PID-specific typing).
Fields§
§segments: Vec<AssembledSegment>§groups: Vec<AssembledGroup>§post_group_start: usizeIndex in segments where post-group segments start (e.g., UNT, UNZ).
Segments before this index appear before groups in EDIFACT order.
inter_group_segments: BTreeMap<usize, Vec<AssembledSegment>>Root segments consumed between groups during assembly (e.g., UNS
section separator in MSCONS). Key = index into groups vec; value =
segments that appear immediately before that group in the EDIFACT
stream. Empty for messages without inter-group root segments.
Trait Implementations§
Source§impl Clone for AssembledTree
impl Clone for AssembledTree
Source§fn clone(&self) -> AssembledTree
fn clone(&self) -> AssembledTree
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 AssembledTree
impl Debug for AssembledTree
Source§impl<'de> Deserialize<'de> for AssembledTree
impl<'de> Deserialize<'de> for AssembledTree
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AssembledTree
impl RefUnwindSafe for AssembledTree
impl Send for AssembledTree
impl Sync for AssembledTree
impl Unpin for AssembledTree
impl UnsafeUnpin for AssembledTree
impl UnwindSafe for AssembledTree
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