Skip to main content

print

Function print 

Source
pub fn print(doc: &Doc, opts: &PrintOptions) -> String
Expand description

Render doc to a string. Trailing whitespace is trimmed from every line and the result ends with exactly one newline (or is empty), so the output is stable under re-formatting.