pub fn import_document(
state: &mut EiteState,
in_format: &Format,
content_bytes: &[u8],
) -> Result<(Vec<u32>, FormatLog)>Expand description
Import a document from a named external format into a Dc array.
Thin wrapper over formats::dca_from_format.
Arguments:
state: Mutable Eite runtime state.in_format: Source format identifier.content_bytes: Raw serialized payload.
Returns a newly allocated Dc array (Vec<u32>).
Errors:
- Unknown or unsupported
in_format. - Malformed content (syntax / structural violations per format rules).