pub fn segment_file(source: &str) -> Vec<Segment>
Split source into a header segment plus one segment per top-level knot / top-level stitch. See the module doc for the boundary rules.
source