Skip to main content

to_surf_source

Function to_surf_source 

Source
pub fn to_surf_source(doc: &SurfDoc) -> String
Expand description

Serialize a SurfDoc to valid .surf format text.

The output can be parsed back with [crate::parse] to produce an equivalent document (round-trip).