Skip to main content

render

Function render 

Source
pub fn render(doc: Box<Doc>, tab: usize, width: usize) -> String
Expand description

Renders a compiled document into a formatted string

§Arguments

  • doc - The compiled document to render
  • tab - Tab size for indentation
  • width - Target line width for formatting

§Returns

A formatted string representation of the document