Skip to main content

write

Function write 

Source
pub fn write(body: &str, stop: &Stop) -> Result<String>
Expand description

body with its stop records replaced by one for stop, on its own line after the notes.

--> inside a value is written as --\u003e, which JSON reads back the same, so a cause cannot end the comment early.

ยงErrors

Returns an error when stop cannot be encoded as JSON.