Skip to main content

schema_to_source_document

Function schema_to_source_document 

Source
pub fn schema_to_source_document(
    _schema: &SchemaDocument,
    plan: LayoutPlan,
) -> Result<SourceDocument, SchemaWriteError>
Expand description

Project a schema document to source using a caller-provided LayoutPlan.

The plan is consumed: its validated form/array-form assignments are applied during emission and the owned EureDocument inside it is moved into the resulting SourceDocument.