Skip to main content

read

Function read 

Source
pub fn read(yaml: &str) -> Result<SemanticTree, Error>
Expand description

Reads YAML written by write() or by hand into a tree. Bounds are zero where the YAML has none, and states are taken as written rather than derived. Top-level window entries become windows; anything else is wrapped in one unnamed window, so writing that window gives back the same text.