pub fn transform_document(
dc_array: &[u32],
transformation: &DocumentTransformation,
) -> Result<Vec<u32>>Expand description
Apply an in‑memory document transformation (Dc array -> Dc array).
Delegates to transform::apply_document_transformation.
Arguments:
_state: (Reserved) not currently required by the known transformations; kept for forward compatibility if future transforms become stateful.dc_array: Source Dc array.transformation: Transformation identifier (e.g. “semanticToText”).
Returns the transformed Dc array (new vector).
Errors:
- Unknown transformation name.
- Transformation specific errors (if any future transform is fallible).