pub fn deserialize<T: EdifactDeserialize>(
input: &[u8],
) -> Result<T, EdifactError>Expand description
Deserialize a value of type T from EDIFACT bytes.
Buffers every parsed segment into a Vec<Segment<'_>> before handing it to
T. For large interchanges prefer deserialize_each (one segment at a
time) or deserialize_messages (one message at a time).
§Resource bounds
ReaderConfig::default() applies. The buffered segments
take up to 128 × the input’s bytes in heap; stream untrusted input instead.
§Errors
Any parse error, or whatever T reports.