pub fn export_document(
state: &mut EiteState,
out_format: &Format,
dc_array: &[u32],
prefilter_settings: &PrefilterSettings,
) -> Result<(Vec<u8>, FormatLog)>Expand description
Export a document (Dc array) into a named external format.
Thin wrapper over formats::dca_to_format.
Arguments:
state: Mutable Eite runtime state (collects warnings, caches, settings).out_format: Target format identifier (case / spelling must match a registered format).dc_array: The in‑memory Dc array representation (sequence of codepoint / symbol IDs).
Returns serialized bytes on success.
Errors:
- Propagates any format‑specific encoding or validation errors.
- Unknown
out_formatwill typically surface as anErr.