Skip to main content

Module builder

Module builder 

Source
Expand description

Programmatic SurfDoc builder and .surf source serializer.

The SurfDocBuilder provides a fluent API for constructing SurfDoc documents without writing raw .surf text. The to_surf_source function serializes any SurfDoc back to valid .surf format that round-trips through [crate::parse].

Structs§

SurfDocBuilder
Fluent builder for constructing SurfDoc documents programmatically.

Functions§

to_surf_source
Serialize a SurfDoc to valid .surf format text.